Thanks much!  I dropped price from the fq term, changed to an edismax
parser, and boosted with
bq=price:[150+TO+*]^100



On Thu, May 9, 2019 at 7:21 AM Edward Ribeiro <edward.ribe...@gmail.com>
wrote:

> Em qua, 8 de mai de 2019 18:56, Doug Reeder <d...@ahlbrandsgroup.com>
> escreveu:
>
> >
> > Similarly, we have a filter query that only returns products over $150:
> > fq=price:[150+TO+*]
> >
> > Can this be changed to a q or qf parameter where products less than $150
> > have score less than any product priced $150 or more? (A price higher
> than
> > $150 should not increase the score.)
> >
>
> If you are using edismax then you could use boost function. Maybe something
> along those: bf=if(lt(price, 150), 0.5, 100)
>
> Your fq already filters out documents with prices less than 150. Using a
> boost (function/query) will retrieve back docs with prices less than 150,
> but probably with smaller scores.
>
> Edward
>
> >
>

Reply via email to