You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Manish Bafna <ma...@gmail.com> on 2021/10/18 10:20:54 UTC
Tie Breaker and Boost query
Hi Solr experts,
I am looking for a solution for this. We are using edismax query parser.
We have query like this:
q: (query1 OR query2 OR query3)
&bq:(bq1^2 bq2^3)
&bq:(bq3 bq4)
We wanted to add "tie breaker" only for bq1 and bq2 (Use Max instead of
sum).
How can we do that?
Thanks,
Manish.
Re: Tie Breaker and Boost query
Posted by Erik Hatcher <er...@gmail.com>.
What query did you try exactly?
> On Oct 18, 2021, at 6:54 AM, Manish Bafna <ma...@gmail.com> wrote:
>
> I tried that and it is throwing error as: "Infinite Recursion detected
> parsing query"
>
> On Mon, Oct 18, 2021 at 4:09 PM Erik Hatcher <er...@gmail.com> wrote:
>
>> Try using a dismax or edismax query for that bq.
>>
>> On Mon, Oct 18, 2021, 06:22 Manish Bafna <ma...@gmail.com>
>> wrote:
>>
>>> Hi Solr experts,
>>> I am looking for a solution for this. We are using edismax query parser.
>>> We have query like this:
>>> q: (query1 OR query2 OR query3)
>>> &bq:(bq1^2 bq2^3)
>>> &bq:(bq3 bq4)
>>>
>>> We wanted to add "tie breaker" only for bq1 and bq2 (Use Max instead of
>>> sum).
>>>
>>> How can we do that?
>>>
>>> Thanks,
>>> Manish.
>>>
>>
Re: Tie Breaker and Boost query
Posted by Manish Bafna <ma...@gmail.com>.
I tried that and it is throwing error as: "Infinite Recursion detected
parsing query"
On Mon, Oct 18, 2021 at 4:09 PM Erik Hatcher <er...@gmail.com> wrote:
> Try using a dismax or edismax query for that bq.
>
> On Mon, Oct 18, 2021, 06:22 Manish Bafna <ma...@gmail.com>
> wrote:
>
> > Hi Solr experts,
> > I am looking for a solution for this. We are using edismax query parser.
> > We have query like this:
> > q: (query1 OR query2 OR query3)
> > &bq:(bq1^2 bq2^3)
> > &bq:(bq3 bq4)
> >
> > We wanted to add "tie breaker" only for bq1 and bq2 (Use Max instead of
> > sum).
> >
> > How can we do that?
> >
> > Thanks,
> > Manish.
> >
>
Re: Tie Breaker and Boost query
Posted by Erik Hatcher <er...@gmail.com>.
Try using a dismax or edismax query for that bq.
On Mon, Oct 18, 2021, 06:22 Manish Bafna <ma...@gmail.com> wrote:
> Hi Solr experts,
> I am looking for a solution for this. We are using edismax query parser.
> We have query like this:
> q: (query1 OR query2 OR query3)
> &bq:(bq1^2 bq2^3)
> &bq:(bq3 bq4)
>
> We wanted to add "tie breaker" only for bq1 and bq2 (Use Max instead of
> sum).
>
> How can we do that?
>
> Thanks,
> Manish.
>