diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index ccd4a69755e..bd6f0ae15fd 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -139,6 +139,11 @@ Bug Fixes * LUCENE-4739: Fixed bugs that prevented FSTs more than ~1.1GB from being saved and loaded (Adrien Grand, Mike McCandless) +Documentation + +* LUCENE-4718: Fixed documentation of oal.queryparser.classic. + (Hayden Muhl via Adrien Grand) + Build * LUCENE-4636: Upgrade ivy to 2.3.0 (Shawn Heisey via Robert Muir) diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html index 607e7505603..490f6dfec28 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html @@ -167,11 +167,11 @@ enabling substantial customization to how a query is created. If you want to find the document entitled "The Right Way" which contains the text "don't go this way", you can enter:
title:"The Right Way" AND text:go
or
-title:"Do it right" AND right+
title:"The Right Way" AND go
Since text is the default field, the field indicator is not required.
Note: The field is only valid for the term that it directly precedes, so the query
-title:Do it right-
Will only find "Do" in the title field. It will find "it" and "right" in the default field (in this case the text field).
+title:The Right Way+
Will only find "The" in the title field. It will find "Right" and "Way" in the default field (in this case the text field).