Skip to content

Commit bae40e6

Browse files
committed
Docs changes - package docs and CHANGES.txt
1 parent 9c7dc56 commit bae40e6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lucene/CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@ API Changes
5858

5959
* LUCENE-9340: SimpleBindings#add(SortField) has been removed. (Alan Woodward)
6060

61+
* LUCENE-9445: QueryParserBase.getRegexpQuery and newRegexpQuery now take a
62+
caseSensitive flag to allow new case insensitive matching option. (Mark Harwood)
63+
6164
Improvements
6265

66+
* LUCENE-9445: QueryParser syntax for regular expressions extended to support
67+
trailing i for case insensitive matching e.g. /.*Foo/i (Mark Harwood)
68+
6369
* LUCENE-9370: RegExp query is no longer lenient about inappropriate backslashes and
6470
follows the Java Pattern policy for rejecting illegal syntax. (Mark Harwood)
6571

lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@
192192
* syntax is documented in the {@link org.apache.lucene.util.automaton.RegExp RegExp} class. For example to find documents containing "moat" or "boat":
193193
*
194194
* <pre class="code">/[mb]oat/</pre>
195+
* <p>Searches against indexed terms can be made case insensitive by adding an `i` to the regex as in this example:
196+
*
197+
* <pre class="code">/.*MiXeDcAsE/i</pre>
195198
* <a id="N1009B"></a><a id="Fuzzy_Searches"></a>
196199
* <h3 class="boxed">Fuzzy Searches</h3>
197200
* <p>Lucene supports fuzzy searches based on Damerau-Levenshtein Distance. To do a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search:

0 commit comments

Comments
 (0)