lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dc tech <dctech1...@gmail.com>
Subject Boost parameter with query function - how to pass in complex params?
Date Sat, 06 Apr 2013 13:42:29 GMT
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)

b) Using two query functions and summing the boosts DOES work
Works:   q=suv&boost=sum(query({!v='honda'},1),query({!v='toyota'},1))

Any thoughts?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message