Skip to content

Commit 45a08b9

Browse files
ChrisHegartyjpountzoriginal-brownbearbenwtrentjohn-wagster
authored
Upgrade to Lucene 9.12.0 (elastic#113333) (elastic#113835)
This commit upgrades to Lucene 9.12.0. Co-authored-by: Adrien Grand <[email protected]> Co-authored-by: Armin Braun <[email protected]> Co-authored-by: Benjamin Trent <[email protected]> Co-authored-by: John Wagster <[email protected]> Co-authored-by: Luca Cavanna <[email protected]> Co-authored-by: Mayya Sharipova <[email protected]>
1 parent a49228b commit 45a08b9

File tree

81 files changed

+1435
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1435
-350
lines changed

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
elasticsearch = 8.16.0
2-
lucene = 9.11.1
2+
lucene = 9.12.0
33

44
bundled_jdk_vendor = openjdk
55
bundled_jdk = 22.0.1+8@c7ec1332f7bb44aeba2eb341ae18aca4

docs/Versions.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
include::{docs-root}/shared/versions/stack/{source_branch}.asciidoc[]
33

4-
:lucene_version: 9.11.1
5-
:lucene_version_path: 9_11_1
4+
:lucene_version: 9.12.0
5+
:lucene_version_path: 9_12_0
66
:jdk: 11.0.2
77
:jdk_major: 11
88
:build_type: tar

docs/changelog/111465.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 111465
2+
summary: Add range and regexp Intervals
3+
area: Search
4+
type: enhancement
5+
issues: []

docs/changelog/112826.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 112826
2+
summary: "Multi term intervals: increase max_expansions"
3+
area: Search
4+
type: enhancement
5+
issues:
6+
- 110491

docs/changelog/113333.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 113333
2+
summary: Upgrade to Lucene 9.12
3+
area: Search
4+
type: upgrade
5+
issues: []

docs/reference/modules/threadpool.asciidoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@ There are several thread pools, but the important ones include:
1313

1414
[[search-threadpool]]
1515
`search`::
16-
For coordination of count/search operations at the shard level whose computation
17-
is offloaded to the search_worker thread pool. Used also by fetch and other search
16+
For count/search operations at the shard level. Used also by fetch and other search
1817
related operations Thread pool type is `fixed` with a size of `int((`<<node.processors,
1918
`# of allocated processors`>>`pass:[ * ]3) / 2) + 1`, and queue_size of `1000`.
2019

21-
`search_worker`::
22-
For the heavy workload of count/search operations that may be executed concurrently
23-
across segments within the same shard when possible. Thread pool type is `fixed`
24-
with a size of `int((`<<node.processors, `# of allocated processors`>>`pass:[ * ]3) / 2) + 1`, and unbounded queue_size .
25-
2620
[[search-throttled]]`search_throttled`::
2721
For count/search/suggest/get operations on `search_throttled indices`.
2822
Thread pool type is `fixed` with a size of `1`, and queue_size of `100`.

docs/reference/query-dsl/intervals-query.asciidoc

Lines changed: 75 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ Valid rules include:
7373
* <<intervals-match,`match`>>
7474
* <<intervals-prefix,`prefix`>>
7575
* <<intervals-wildcard,`wildcard`>>
76+
* <<intervals-regexp,`regexp`>>
7677
* <<intervals-fuzzy,`fuzzy`>>
78+
* <<intervals-range,`range`>>
7779
* <<intervals-all_of,`all_of`>>
7880
* <<intervals-any_of,`any_of`>>
7981
--
@@ -122,8 +124,9 @@ unstemmed ones.
122124
==== `prefix` rule parameters
123125

124126
The `prefix` rule matches terms that start with a specified set of characters.
125-
This prefix can expand to match at most 128 terms. If the prefix matches more
126-
than 128 terms, {es} returns an error. You can use the
127+
This prefix can expand to match at most `indices.query.bool.max_clause_count`
128+
<<search-settings,search setting>> terms. If the prefix matches more terms,
129+
{es} returns an error. You can use the
127130
<<index-prefixes,`index-prefixes`>> option in the field mapping to avoid this
128131
limit.
129132

@@ -149,7 +152,8 @@ separate `analyzer` is specified.
149152
==== `wildcard` rule parameters
150153

151154
The `wildcard` rule matches terms using a wildcard pattern. This pattern can
152-
expand to match at most 128 terms. If the pattern matches more than 128 terms,
155+
expand to match at most `indices.query.bool.max_clause_count`
156+
<<search-settings,search setting>> terms. If the pattern matches more terms,
153157
{es} returns an error.
154158

155159
`pattern`::
@@ -178,12 +182,44 @@ The `pattern` is normalized using the search analyzer from this field, unless
178182
`analyzer` is specified separately.
179183
--
180184

185+
[[intervals-regexp]]
186+
==== `regexp` rule parameters
187+
188+
The `regexp` rule matches terms using a regular expression pattern.
189+
This pattern can expand to match at most `indices.query.bool.max_clause_count`
190+
<<search-settings,search setting>> terms.
191+
If the pattern matches more terms,{es} returns an error.
192+
193+
`pattern`::
194+
(Required, string) Regexp pattern used to find matching terms.
195+
For a list of operators supported by the
196+
`regexp` pattern, see <<regexp-syntax, Regular expression syntax>>.
197+
198+
WARNING: Avoid using wildcard patterns, such as `.*` or `.*?+``. This can
199+
increase the iterations needed to find matching terms and slow search
200+
performance.
201+
--
202+
`analyzer`::
203+
(Optional, string) <<analysis, analyzer>> used to normalize the `pattern`.
204+
Defaults to the top-level `<field>`'s analyzer.
205+
--
206+
`use_field`::
207+
+
208+
--
209+
(Optional, string) If specified, match intervals from this field rather than the
210+
top-level `<field>`.
211+
212+
The `pattern` is normalized using the search analyzer from this field, unless
213+
`analyzer` is specified separately.
214+
--
215+
181216
[[intervals-fuzzy]]
182217
==== `fuzzy` rule parameters
183218

184219
The `fuzzy` rule matches terms that are similar to the provided term, within an
185220
edit distance defined by <<fuzziness>>. If the fuzzy expansion matches more than
186-
128 terms, {es} returns an error.
221+
`indices.query.bool.max_clause_count`
222+
<<search-settings,search setting>> terms, {es} returns an error.
187223

188224
`term`::
189225
(Required, string) The term to match
@@ -214,6 +250,41 @@ The `term` is normalized using the search analyzer from this field, unless
214250
`analyzer` is specified separately.
215251
--
216252

253+
[[intervals-range]]
254+
==== `range` rule parameters
255+
256+
The `range` rule matches terms contained within a provided range.
257+
This range can expand to match at most `indices.query.bool.max_clause_count`
258+
<<search-settings,search setting>> terms.
259+
If the range matches more terms,{es} returns an error.
260+
261+
`gt`::
262+
(Optional, string) Greater than: match terms greater than the provided term.
263+
264+
`gte`::
265+
(Optional, string) Greater than or equal to: match terms greater than or
266+
equal to the provided term.
267+
268+
`lt`::
269+
(Optional, string) Less than: match terms less than the provided term.
270+
271+
`lte`::
272+
(Optional, string) Less than or equal to: match terms less than or
273+
equal to the provided term.
274+
275+
NOTE: It is required to provide one of `gt` or `gte` params.
276+
It is required to provide one of `lt` or `lte` params.
277+
278+
279+
`analyzer`::
280+
(Optional, string) <<analysis, analyzer>> used to normalize the `pattern`.
281+
Defaults to the top-level `<field>`'s analyzer.
282+
283+
`use_field`::
284+
(Optional, string) If specified, match intervals from this field rather than the
285+
top-level `<field>`.
286+
287+
217288
[[intervals-all_of]]
218289
==== `all_of` rule parameters
219290

0 commit comments

Comments
 (0)