lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Basic clause with NOT
Date Fri, 21 Dec 2001 23:30:17 GMT
This is a FAQ.
See http://www.jguru.com/faq/home.jsp?topic=Lucene in a few hours.

The answer is: NOT <query term> queries are not permitted.

Otis


--- Aruna Raghavan <ArunaR@opin.com> wrote:
> Hello,
> In Lucene documentation, the query syntax is defined as follows:
> Syntax:
> Query  ::=  Clause  ( [ Conjunction ] Clause ) *
> 
> Where:
> 		Clause ::=  [ Modifier ] [ FieldName ':' ] BasicClause 
> 			Modifier    ::= '-' | '+' | '!' | 'NOT'
> 			BasicClause ::= ( Term | Phrase | | PrefixQuery '('
> Query ')'
> 			PrefixQuery ::= Term '*'
> 			Term        ::= <a-word-or-token-to-match>
> 			Phrase      ::= '"' Term * '"'
> 
> 		Conjunction ::= 'AND' | 'OR' | '||'
> 
> 		-----------------------------
> 
> 		If I try a search using  "NOT sometext" it does not work. Is
> it not supported? I think I am following the syntax according to the
> documentation. I am trying to get all documents that do not have a
> given
> word.
> 		Thanks in advance for any help.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message