optional nested queries

2011-07-01 Thread joelmats
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+descfl=*+scorestart=0q=_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 yorkrows=10debugQuery=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.


Re: optional nested queries

2011-07-01 Thread joelmats
Thanks!

I was wondering why my highlighting wasnt' working either.

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