Pure negatives in lucene syntax don't match anything (solr currently only fixes this for you if it's a pure negative at the top-level, not embeded).
Try changing (NOT periodicite:"annuel") to (*:* NOT periodicite:"annuel") But the second version below where you just removed the parens will be more efficient. -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague On Fri, Apr 30, 2010 at 1:49 AM, mailing-list <gboyr...@andevsol.com> wrote: > Hi everybody, > > We got a problem with parenthesis in a lucene/solr request (Solr 1.4) : > - {!lucene q.op=AND}( ville:"Moscou" -periodicite:"annuel") give > 254documents > with parsedquery>+ville:Moscou -periodicite:annuel< in debug mode. Thas'ts > correct. > - {!lucene q.op=AND} (ville:"Moscou" AND NOT periodicite:"annuel") same > results. > - {!lucene q.op=AND} (ville:"Moscou" AND (NOT periodicite:"annuel")) give 0 > documents > with parsedquery>+ville:Moscou +(-periodicite:annuel)< > > The 2 fields are standards string fields in the solr shema. > > Is it a issue or standard way of the Solr Query Parser ? > > Best regards. > Gilbert Boyreau >