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.

Re: optional nested queries

2011-07-01 Thread Erik Hatcher
Put an OR between your two nested queries to ensure you're using that operator. Also, those hl params in your first dismax don't really belong there and should be separate parameters globally. Erik On Jul 1, 2011, at 06:19 , joelmats wrote: > Hello! > > Is it possible to have an opti

Re: optional nested queries

2011-07-01 Thread kenf_nc
I don't use dismax, but do something similar with a regular query. I have a field defined in my schema.xml called 'dummy' (not sure why its called that actually) but it defaults to 1 on every document indexed. So say I want to give a score bump to documents that have an image, I can do queries like