lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aruna Raghavan <Aru...@opin.com>
Subject Basic clause with NOT
Date Fri, 21 Dec 2001 23:02:03 GMT
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>


Mime
View raw message