Yonik, Many thanks. The OR is still not working... here is the full URL 1. Honda or Toyota individually work http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=honda http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=toyota I can see the scores increasing on the matching models.
2. But the OR does not work http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=toyota%20or%20honda The scores stay at the baseline suggesting no match on the boostQ. 3. For reference, the bq parameter works fine. >From a use case perspective, the idea was to pass in user preferences into the BoostQ e.g. projects the user has worked on etc.when matching documents On Sat, Apr 6, 2013 at 10:19 AM, Yonik Seeley <yo...@lucidworks.com> wrote: > On Sat, Apr 6, 2013 at 9:42 AM, dc tech <dctech1...@gmail.com> wrote: > > See example below > > 1. Search for SUVs and boost Honda models > > q=suv&boost=query({! v='honda'},1) > > > > 2. Search for SUVs and boost Honda OR toyota model > > > > a) Using OR in the query does NOT work > > q=suv&boost=query({! v='honda or toyota'},1) > > The "or" needs to be uppercase "OR". > > It might also be easier to compose and read like this: > q=suv > boost=query($boostQ) > boostQ=honda OR toyota > > OF course something simpler like this might also serve your primary goal: > q=+suv (honda OR toyota)^10 > > > -Yonik > http://lucidworks.com >