lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Kumar K <>
Subject Query
Date Thu, 27 Jun 2002 06:03:53 GMT


How to create a query which should search for  documents 
that doesnot containing a certain Term. I used '-' before the 
string to be avoided 

Query  qu= QueryParser.parse("-pradeep","name",new 

I have two documents with 'name'  not equal to 'pradeep'
but the number of hits returned is 0 but   putting '+'  in the 
above query seems to be returning correct number of hits.


Robosoft Technologies, Mangalore, India

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message