Please check the Lucene FAQ at http://www.jguru.com/.  I believe the
answer is there.

Otis

--- Pradeep Kumar K <[EMAIL PROTECTED]> wrote:
> 
> Hi
> 
> 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 
> StandardAnalyzer());
> 
> 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.
> 
> Regards
> Pradeep
> 
> 
> --------------------------------------------------------------
> Robosoft Technologies, Mangalore, India
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to