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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


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

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

Reply via email to