Naga Darbha wrote:
I tried "-" even, but it works only with standard queries, but not "dismax".
regards,
Naga
-----Original Message-----
From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
Sent: Thursday, April 29, 2010 9:46 AM
To: solr-user@lucene.apache.org
Subject: Re: NOT keyword - doesn't work with dismax?
Naga Darbha wrote:
Hi,
I am trying the NOT clause with dismax query type, and it is not working. It
works with the standard query type. I tried the following query:
q=NOT+keyword&fq=&qt=dismax&start=0&rows=26&fl=score
But, when I replace qt=standard, it works.
How to make it work with dismax query type?
regards,
Naga
Use "-" instead of NOT when you use dismax.
http://wiki.apache.org/solr/DisMaxRequestHandler#q
Koji
Ah, dismax doesn't support top-level NOT query.
I'm not sure extended dismax supports it because JIRA is not
currently available, but try to check:
https://issues.apache.org/jira/browse/SOLR-1553
Koji
--
http://www.rondhuit.com/en/