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 <gksachi...@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 <erik.hatc...@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 <gksachi...@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