lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aruna Raghavan <Aru...@opin.com>
Subject simple syntax question
Date Thu, 27 Dec 2001 19:28:21 GMT
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:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message