RE: Need "OR" in DisMax Query

2009-10-06 Thread Dean Missikowski (Consultant), CLSA
Hi David, See this thread for how I use OR with Dismax. http://www.mail-archive.com/solr-user@lucene.apache.org/msg19375.html -- Dean -Original Message- From: Ingo Renner [mailto:i...@typo3.org] Sent: 06 October 2009 05:00 To: solr-user@lucene.apache.org Subject: Re: Need "O

Re: Need "OR" in DisMax Query

2009-10-06 Thread Ingo Renner
Am 05.10.2009 um 20:36 schrieb David Giffin: Hi David, Maybe I'm missing something, but I can't seem to get the dismax request handler to perform and OR query. It appears that OR is removed by the stop words. It's not the stop words, Dismax simply doesn't do any boolean operations, the onl

Re: Need "OR" in DisMax Query

2009-10-05 Thread David Giffin
So, I remove the stop word OR from the stopwords and get the same result. Using the standard query handler syntax like this "fq=((tags:red)+OR+(tags:green))" I get 421,000 results. Using dismax "q=red+OR+green" I get 29,000 results. The debug output from parsedquery_toString show this: +(((tags:re

Re: Need "OR" in DisMax Query

2009-10-05 Thread Christian Zambrano
David, If your schema includes fields with analyzers that use the StopFilterFactory and the dismax QueryHandler is set-up to search within those fields, then you are correct. On 10/05/2009 01:36 PM, David Giffin wrote: Hi There, Maybe I'm missing something, but I can't seem to get the dism

Need "OR" in DisMax Query

2009-10-05 Thread David Giffin
Hi There, Maybe I'm missing something, but I can't seem to get the dismax request handler to perform and OR query. It appears that OR is removed by the stop words. I like to do something like "qt=dismax&q=red+OR+green" and get all green and all red results. Thanks, David