Skip to content

Commit

Permalink
itr
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty committed Sep 6, 2024
1 parent 471cbc5 commit 274816d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lucene/MIGRATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,14 @@ behind the scenes. It is the responsibility of the caller to call
### RegExp no longer supports the optional complement syntax

The `RegExp` class no longer supports the optional complement syntax, previously
supported by the `~` character. In many cases a _complemented bracket expression_,
`[^...]`, may be a suitable replacement, For example, `[^awk]` matches any
character that is not an `a`, `w`, or `k`.
supported by the `~` character. When working with automata retrieved from regexp,
equivalent functionality can be achieved by using `Operations.complement`. For
example, `new RegExp("~(foo)").toAutomaton()` that matches input that is not
"foo", can be rewritten as `Operations.complement(new RegExp("(foo)").toAutomaton(), ...)`.

Alternatively, and quite commonly, a more simple _complement bracket expression_,
`[^...]`, may be a suitable replacement, For example, `[^fo]` matches any
character that is not an `f` or `o`.

### DocValuesFieldExistsQuery, NormsFieldExistsQuery and KnnVectorFieldExistsQuery removed in favor of FieldExistsQuery (LUCENE-10436)

Expand Down

0 comments on commit 274816d

Please sign in to comment.