lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: Boost parameter with query function - how to pass in complex params?
Date Sat, 06 Apr 2013 14:19:05 GMT
On Sat, Apr 6, 2013 at 9:42 AM, dc tech <> 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:
boostQ=honda OR toyota

OF course something simpler like this might also serve your primary goal:
q=+suv (honda OR toyota)^10


View raw message