I tried the function query route, but getting a weird exception.
*bf=if(termfreq(ContentGroup,'Developer Doc'),-20,0)* throws an exception
*org.apache.solr.search.SyntaxError: Missing end quote for string at pos 29
str='if(termfreq(ContentGroup,'Developer'* . Does it only accept single word
or the
Thanks for clarifying - that you are referring to the bq parameter which is
in fact additive to the underlying score within the original query, while
in the main query, or using the bf and boost and qf and pf parameters the
boosting is multiplicative rather than "additive".
IOW, only in the bq par
Hi Jack,
I think we are talking about different things: I agree that boost is
multiplicative, and boost values less than zero will reduce score, but
if you use such boost value in bq, it will still bust documents that are
matching it. Simplest example is with ids. If you query:
q=id:a OR id:
Thanks Walter, I've tried this earlier and it works. But the problem in my
case is that I've boosting on few Source parameters as well. My ideal "bq"
should like this:
*bq=Source:simplecontent^10 Source:Help^20 (*:*
-ContentGroup-local:("Developer"))^99*
But this is not going to work.
I'm wo
Could you share your actual numbers and test case? IOW, the document score
without ^0.01 and with ^0.01.
Again, to repeat, the specific boost factor may be positive, but the effect
of a fractional boost is to reduce, not add, to the score, so that a score
of 0.5 boosted by 0.1 would become 0.05. I
Hi Jack,
I just checked on 5.5 and 0.1 is positive boost.
Regards,
Emir
On 26.02.2016 01:11, Jack Krupansky wrote:
0.1 is a fractional boost - all intra-query boosts are multiplicative, not
additive, so term^0.1 reduces the term by 90%.
-- Jack Krupansky
On Wed, Feb 24, 2016 at 11:29 AM, sham
0.1 is a fractional boost - all intra-query boosts are multiplicative, not
additive, so term^0.1 reduces the term by 90%.
-- Jack Krupansky
On Wed, Feb 24, 2016 at 11:29 AM, shamik wrote:
> Binoy, 0.1 is still a positive boost. With title getting the highest
> weight,
> this won't make any diff
Another approach is to boost everything but that content.
This bq should work:
*:* -ContentGroup:”Developer’s Documentation”
Or a function query in the boost parameter, with an if statement.
Or make ContentGroup an enum with different values for each group, and use a
function query to boost by
According to the edismax documentation, negative boosts are supported, so
you should certainly give it a try.
https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser
On Fri, 26 Feb 2016, 03:45 shamik wrote:
> Emir, I don't Solr supports a negative boosting *^-99* syntax
Emir, I don't Solr supports a negative boosting *^-99* syntax like this. I
can certainly do something like:
bq=(*:* -ContetGroup:"Developer's Documentation")^99 , but then I can't have
my other bq parameters.
This doesn't work --> bq=Source:simplecontent^10 Source:Help^20 (*:*
-ContetGroup:"Devel
Hi Shamik,
You are righ boosting with values that are lower than 1 is still
positive, but you can boost with negative value and that should do the
trick so you can do bq=ContenGroup-local:Developer^-99 (note that it can
result in negative score).
If you need more than just Developer/Others you
Binoy, 0.1 is still a positive boost. With title getting the highest weight,
this won't make any difference. I've tried this as well.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Query-time-de-boost-tp4259309p4259552.html
Sent from the Solr - User mailing list archive at
Hi Emir,
I've a bunch of contentgroup values, so boosting them individually is
cumbersome. I've boosting on query fields
qf=text^6 title^15 IndexTerm^8
and
bq=Source:simplecontent^10 Source:Help^20
(-ContentGroup-local:("Developer"))^99
I was hoping *(-ContentGroup-local:("Developer"))^9
If you were to apply a boost of less than 1, so something like 0.1, that
would reduce the score of the docs you want to de-boost.
On Wed, 24 Feb 2016, 15:17 Emir Arnautovic
wrote:
> Hi Shamik,
> Is boosting others acceptable option to you, e.g.
> ContentGroup:"NonDeveloper"^100.
> Which query pa
Hi Shamik,
Is boosting others acceptable option to you, e.g.
ContentGroup:"NonDeveloper"^100.
Which query parser do you use?
Regards,
Emir
--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/
On 23.02.2016 23:42, Shami
15 matches
Mail list logo