Do you want something like (Romantic AND View) OR city:Chicago^10?

Best
Erick

On Tue, Nov 2, 2010 at 10:45 AM, kenf_nc <ken.fos...@realestate.com> wrote:

>
> I can't seem to find the right formula for this. I have a need to build a
> query where one of the fields should boost the score, but not affect the
> query if there isn't a match. For example, if I have documents with
> restaurants, name, address, cuisine, description, etc.  I want to search
> on,
> say,
>
> Romantic AND View AND city:Chicago
>
> if city is in fact Chicago it should score higher, but if city is not
> Chicago (or even if it's missing the city field), but matches the other
> query parameters it should still come back in the results. Is something
> like
> this possible?  It's kind of like  q=(some query) optional boost if
> field:value.
>
> Thanks,
> Ken
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Query-question-tp1828367p1828367.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to