Re: Negative boost query (bq) with edismax for lower scores with Solr 8

2019-05-23 Thread CO
I didn't see any response so I wanted to check if my observation simply is not relevant for other people or if I missed to provide any required details. Thanks! -Original Message- Date: 05/09/2019 08:28 AM Subject: Negative boost query (bq) with edismax for lower scores with Solr

Negative boost query (bq) with edismax for lower scores with Solr 8

2019-05-09 Thread CO
I find that the edismax boost query implementation is not quite logical. It does not allow selectively decreasing the relevancy score anymore. E.g. bq=color:red^2 can be added to increase the score of matching documents. But how can I decrease the score for documents with color:red? Before Solr

Using bq param for negative boost

2015-09-02 Thread Kevin Lee
Hi, I’m trying to boost all results using the bq param with edismax where termA and termB do not appear in the field, but if phraseC appears it doesn’t matter if termA and termB appear. The following works and boosts everything that doesn’t have termA and termB in myField so the effect is that

Re: Negative boost

2011-05-02 Thread Ahmet Arslan
I understand that the only way to simulate a negative boost is to positively boost the inverse. I have looked at http://wiki.apache.org/solr/SolrRelevancyFAQ but I think I am missing something on the formatting of my query. I am using: http://localhost:8983/solr/search?q=dog&am

Negative boost

2011-05-02 Thread Brian Lamb
Hi all, I understand that the only way to simulate a negative boost is to positively boost the inverse. I have looked at http://wiki.apache.org/solr/SolrRelevancyFAQ but I think I am missing something on the formatting of my query. I am using: http://localhost:8983/solr/search?q=dog&am

RE: negative boost

2010-03-29 Thread Jason Chaffee
I think the key was change the tie to 0. I had it at 0.1. Getting exactly what I want now. Big thanks for the help. -Original Message- From: Jason Chaffee [mailto:jchaf...@ebates.com] Sent: Monday, March 29, 2010 5:20 PM To: solr-user@lucene.apache.org Subject: RE: negative boost I

RE: negative boost

2010-03-29 Thread Jason Chaffee
dismax. Thanks for the tip. I will try it. Jason -Original Message- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: Monday, March 29, 2010 5:06 PM To: solr-user@lucene.apache.org Subject: RE: negative boost : Unfortunately, my results aren't quite what I want unless I

RE: negative boost

2010-03-29 Thread Chris Hostetter
: Unfortunately, my results aren't quite what I want unless I use 0 on the : second field. Instead, if something matches in all the fields it is : elevated to the top. I only want the first field match elevated to the : top and I want all first field matches to have the same weight. Next, I

RE: negative boost

2010-03-29 Thread Jason Chaffee
- From: Paul Libbrecht [mailto:p...@activemath.org] Sent: Monday, March 29, 2010 1:10 PM To: solr-user@lucene.apache.org Subject: Re: negative boost Jason, don't you want field1^3 * field2^1 * field3^0.9 ? As written in Lucene in action, it's all multiplied. So "negative bo

Re: negative boost

2010-03-29 Thread Paul Libbrecht
Jason, don't you want field1^3 • field2^1 • field3^0.9 ? As written in Lucene in action, it's all multiplied. So "negative boost" means "boost under 1" (and probably elsewhere) paul PS: take the log and you get this negative. Le 29-mars-10 à 21:08, Jason Chaf

negative boost

2010-03-29 Thread Jason Chaffee
Is it possible to give a negative in boost in dismax? For instance, field1^3 field2^0 field3^-0.1 Thanks, Jason

Re: weird behabiour when setting negative boost with bq using dismax

2010-02-04 Thread Marc Sturlese
ld_a:54" > > adding a boost value "^1" to a negated clause doesn't do much (except > maybe make hte queryNorm really wacky) > > > -Hoss > > > -- View this message in context: http://old.nabble.com/weird-behaviour-when-setting-negative-boost-with-bq-using-dismax-tp27406614p27461856.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: weird behabiour when setting negative boost with bq using dismax

2010-02-04 Thread Chris Hostetter
: bq=(*:* -field_a:54^1) I think what you want there is bq=(*:* -field_a:54)^1 ...you are "boosting" things that don't match "field_a:54" adding a boost value "^1" to a negated clause doesn't do much (except maybe make hte queryNorm really wacky) -Hoss

Re: weird behabiour when setting negative boost with bq using dismax

2010-02-04 Thread Marc Sturlese
>Generally speaking, by convention boosts in Lucene have unity at 1.0, >not 0.0. So, a "negative boost" is usually done with boosts between 0 >and 1. For this case, maybe a boost of 0.1 is what you want? I forgot to say I tried what you say aswell but didn't work.

Re: weird behabiour when setting negative boost with bq using dismax

2010-02-03 Thread Lance Norskog
In the standard query parser, this means "remove all entries in which field_a = 54". > bq=-field_a:54^1 Generally speaking, by convention boosts in Lucene have unity at 1.0, not 0.0. So, a "negative boost" is usually done with boosts between 0 and 1. For this case, m

weird behabiour when setting negative boost with bq using dismax

2010-02-01 Thread Marc Sturlese
work. What seems to happen is that results that match field_a:54 are excluded. Just like doing: fq=-field_a:54 Any idea what could be happening? Has anyone experienced this behaviour before? Thnaks in advance -- View this message in context: http://old.nabble.com/weird-behabiour-when-setting-neg

Re: Is negative boost possible?

2009-10-13 Thread Andrzej Bialecki
), and it doesn't return any results if only the first clause is present (the one with negative boost) even though it's a matching clause. I think this is related to the fact that in TopScoreDocCollector:48 the pqTop.score is initialized to 0, and then all results that have lower score tha

Re: Is negative boost possible?

2009-10-12 Thread Yonik Seeley
ilter, int), > and it doesn't return any results if only the first clause is present (the > one with negative boost) even though it's a matching clause. > > I think this is related to the fact that in TopScoreDocCollector:48 the > pqTop.score is initialized to 0, and then all

Re: Is negative boost possible?

2009-10-12 Thread Andrzej Bialecki
now Lucene 2.9 no longer does either. Hmm ... The code that I pasted in my previous email uses Searcher.search(Query, int), which in turn uses search(Query, Filter, int), and it doesn't return any results if only the first clause is present (the one with negative boost) even though i

Re: Is negative boost possible?

2009-10-12 Thread Yonik Seeley
On Mon, Oct 12, 2009 at 5:58 AM, Andrzej Bialecki wrote: > BTW, standard Collectors collect only results > with positive scores, so if you want to collect results with negative scores > as well then you need to use a custom Collector. Solr never discarded non-positive hits, and now Lucene 2.9 no

Re: Is negative boost possible?

2009-10-12 Thread Andrzej Bialecki
Yonik Seeley wrote: On Sun, Oct 11, 2009 at 6:04 PM, Lance Norskog wrote: And the other important thing to know about boost values is that the dynamic range is about 6-8 bits That's an index-time boost - an 8 bit float with 5 bits of mantissa and 3 bits of exponent. Query time boosts are norm

Re: Is negative boost possible?

2009-10-11 Thread Yonik Seeley
On Sun, Oct 11, 2009 at 6:04 PM, Lance Norskog wrote: > And the other important > thing to know about boost values is that the dynamic range is about > 6-8 bits That's an index-time boost - an 8 bit float with 5 bits of mantissa and 3 bits of exponent. Query time boosts are normal 32 bit floats.

Re: Is negative boost possible?

2009-10-11 Thread Lance Norskog
e). > We could solve our problem this way. > > > We wanted to do negatively boost some documents based on certain keywords > while > > Marc Sturlese wrote: >> >> >> :>the only way to "negative boost" is to "positively boost" the inverse...

Re: Is negative boost possible?

2009-10-10 Thread ragi
documents based on certain keywords while Marc Sturlese wrote: > > > :>the only way to "negative boost" is to "positively boost" the inverse... > :> > :>(*:* -field1:value_to_penalize)^10 > > This will do the job aswell as bq supports

Re: Is negative boost possible?

2009-08-19 Thread Marc Sturlese
:>the only way to "negative boost" is to "positively boost" the inverse... :> :> (*:* -field1:value_to_penalize)^10 This will do the job aswell as bq supports pure negative queries (at least in trunk): bq=-field1:value_to_penalize^10 http://wiki.apache.o

Re: Is negative boost possible?

2009-08-18 Thread Chris Hostetter
: Use decimal figure less than 1, e.g. 0.5, to express less importance. but that's stil la positive boost ... it still increases the scores of documents that match. the only way to "negative boost" is to "positively boost" the inverse... (*:* -field1:value_

Re: Is negative boost possible?

2009-08-18 Thread Koji Sekiguchi
Hi, Use decimal figure less than 1, e.g. 0.5, to express less importance. Koji Larry He wrote: Hi all, I am looking for a way to assign negative boost to a term in Solr query. Our use scenario is that we want to boost matching documents that are updated recently and penalize those that have

Is negative boost possible?

2009-08-18 Thread Larry He
Hi all, I am looking for a way to assign negative boost to a term in Solr query. Our use scenario is that we want to boost matching documents that are updated recently and penalize those that have not been updated for a long time. There are other terms in the query that would affect the scores