You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sachin gk <gk...@gmail.com> on 2019/05/30 17:24:42 UTC
Boosting using Range
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
Re: Boosting using Range
Posted by Erik Hatcher <er...@gmail.com>.
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 <gk...@gmail.com> 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 <er...@gmail.com> 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 <gk...@gmail.com> 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
Re: Boosting using Range
Posted by sachin gk <gk...@gmail.com>.
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 <er...@gmail.com> 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 <gk...@gmail.com> 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
Re: Boosting using Range
Posted by Erik Hatcher <er...@gmail.com>.
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 <gk...@gmail.com> 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