Hello!

Is it possible to have an optional nested query. I have 2 nested queries and
would like to have the first query mandatory but the second optional. ie..
if there is a match on the second query, i would like it to improve the
score but it is not required.

A sample query I am currently using is:
sort=score+desc&fl=*+score&start=0&q=_query_:"{!dismax qf='name_text
categories_text people_texts' mm='1' hl='on' hl.simple.pre='@@@hl@@@'
hl.simple.post='@@@endhl@@@' hl.fl='people_texts'}mr+milk" _query_:"{!dismax
qf='city_text' mm='1'}new york"&rows=10&debugQuery=on

However, it seems that if the second query fails to match, the whole query
fails.

Thanks!

J



--
View this message in context: 
http://lucene.472066.n3.nabble.com/optional-nested-queries-tp3128847p3128847.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to