lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject [PATCH] QueryParser link to examples
Date Mon, 28 Jan 2002 19:28:23 GMT
Brian Goetz <brian@quiotix.com> writes:

>> A concrete example or two of formatted QueryParser text would go a
>> long ways towards helping out my confusion.  :)
>
> BTW, if you're looking for examples of queries, look in TestQueryParser, 
> there's at least 40 sample queries.  

Thanks, that's a great help Brian.  How about a link to it from
QueryParser?

Index: QueryParser.jj
===================================================================
RCS file: /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj,v
retrieving revision 1.9
diff -u -u -r1.9 QueryParser.jj
--- QueryParser.jj	17 Jan 2002 02:49:22 -0000	1.9
+++ QueryParser.jj	28 Jan 2002 19:27:59 -0000
@@ -94,8 +94,14 @@
  * Thus, in BNF, the query grammar is:
  * <pre>
  *   Query  ::= ( Clause )*
- *   Clause ::= ["+", "-"] [<TERM> ":"] ( <TERM> | "(" Query ")" )
+ *   Clause ::= ["+", "-"] [&lt;TERM> ":"] ( &lt;TERM> | "(" Query ")" )
  * </pre>
+ *
+ * <p>
+ * Examples of appropriately formatted queries can be found in the <a
+ * href="http://cvs.apache.org/viewcvs/jakarta-lucene/src/test/org/apache/lucene/queryParser/TestQueryParser.java?rev=1&content-type=text/vnd.viewcvs-markup">test
+ * cases</a>.
+ * </p>
  *
  * @author Brian Goetz
  */

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


Mime
View raw message