Brian Goetz <[EMAIL PROTECTED]> 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 ::= ["+", "-"] [<TERM> ":"] ( <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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>