Re: Conditions with multiple boosts in bf exists query

2017-09-08 Thread Eric Kurzenberger
Thanks for the response, Erick. Unfortunately, no, these scores aren’t known at index time: they’re specific to the user doing the search, and they can change. Cheers, Eric On 9/7/17, 7:58 PM, "Erick Erickson" wrote: I'd sidestep the problem ;) Are these scores 1> known

Re: Conditions with multiple boosts in bf exists query

2017-09-07 Thread Erick Erickson
I'd sidestep the problem ;) Are these scores 1> known at index time 2> unchanging (at least until the doc is re-indexed)? If so, pre-compute your boost and put it in the doc at index time. The other thing you can do is use payloads to add a float to specific tokens and incorporate them in at

Conditions with multiple boosts in bf exists query

2017-09-07 Thread Eric Kurzenberger
I need to do a bf exists query that matches the following conditions: - IF a_score = 1 AND b_score = 2 THEN boost 30 - IF a_score = 3 AND b_score = 4 THEN boost 20 So far, the bf portion of my query looks like this: if(exists(query({!v="a_score_is:1"})),30,0) But I’m hav