Boosting using Range

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Boosting using Range

sachin gk
Hi All,

I am trying to boost solr documents using the range attribute as mentioned
below.

price_range: 10 25  is it possible, if so how to form a query.

--
Regards,
Sachin
Reply | Threaded
Open this post in threaded view
|

Re: Boosting using Range

Erik Hatcher-4
The simplest given your example, with edismax add &boost=price:[10 TO 25]

Or you literally have a price_range field?    &boost=price_range:10_25 (assuming that's how you indexed it).   What type of field is price_range?   What did you index into it?

        Erik


> On May 30, 2019, at 1:24 PM, sachin gk <[hidden email]> wrote:
>
> Hi All,
>
> I am trying to boost solr documents using the range attribute as mentioned
> below.
>
> price_range: 10 25  is it possible, if so how to form a query.
>
> --
> Regards,
> Sachin

Reply | Threaded
Open this post in threaded view
|

Re: Boosting using Range

sachin gk
Hi Erik,

We have indexed it as a double and has individual value Eg Price_Range: 10.

On Thu, 30 May 2019 at 23:34, Erik Hatcher <[hidden email]> wrote:

> The simplest given your example, with edismax add &boost=price:[10 TO 25]
>
> Or you literally have a price_range field?    &boost=price_range:10_25
> (assuming that's how you indexed it).   What type of field is price_range?
>  What did you index into it?
>
>         Erik
>
>
> > On May 30, 2019, at 1:24 PM, sachin gk <[hidden email]> wrote:
> >
> > Hi All,
> >
> > I am trying to boost solr documents using the range attribute as
> mentioned
> > below.
> >
> > price_range: 10 25  is it possible, if so how to form a query.
> >
> > --
> > Regards,
> > Sachin
>
>

--
Regards,
Sachin
Reply | Threaded
Open this post in threaded view
|

Re: Boosting using Range

Erik Hatcher-4
Sachin - that’s a confusing name for a field that represents a price and not a “range”, but ok.... use the first one but with your field name: &bq=price_range:[10 TO 25]

My bad below saying “boost” (takes a function, not a raw query).   Use “bq”, which takes a regular query.

    Erik

> On May 31, 2019, at 01:26, sachin gk <[hidden email]> wrote:
>
> Hi Erik,
>
> We have indexed it as a double and has individual value Eg Price_Range: 10.
>
>> On Thu, 30 May 2019 at 23:34, Erik Hatcher <[hidden email]> wrote:
>>
>> The simplest given your example, with edismax add &boost=price:[10 TO 25]
>>
>> Or you literally have a price_range field?    &boost=price_range:10_25
>> (assuming that's how you indexed it).   What type of field is price_range?
>> What did you index into it?
>>
>>        Erik
>>
>>
>>> On May 30, 2019, at 1:24 PM, sachin gk <[hidden email]> wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to boost solr documents using the range attribute as
>> mentioned
>>> below.
>>>
>>> price_range: 10 25  is it possible, if so how to form a query.
>>>
>>> --
>>> Regards,
>>> Sachin
>>
>>
>
> --
> Regards,
> Sachin