You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Aruna Raghavan <Ar...@opin.com> on 2001/12/27 20:28:21 UTC

simple syntax question

Hello All,
I am confused about the meaning of the braces in the query syntax:
what does cat(dog) find?
what does cat(dog)* find?
Or is the following defines queries of the following kind?
(cat) AND (dog)  AND (bird) and so on. (i.e, one or more bool combinations)

I think it is the last. But I need someone to confirm this.

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' | '||'

		-----------------------------

Thanks once again for all the help!


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>