You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix DerivedFieldQuery to support concurrent search.
This change updates DerivedFieldQuery to create a separate ValueFetcher instance per thread.
The DerivedFieldValueFetcher is not thread safe in that it holds a ref to a compiled DerivedFieldScript that is
created per thread. Each script also holds a SourceLookup object that is not thread safe.
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* Fix broken cases relying on ObjectDerivedFieldValueFetcher.
DerivedFieldQuery will accept a supplier for a valueFetcher rather than constructing it.
This ensures that the DerivedFieldType creating the query (obj or regular) passes the correct supplier func.
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* remove unused clone method
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* Add changelog entry
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* add an extra test for DerivedFieldType multiPhraseQuery
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* more coverage
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
* add tests for normalizedWildcard and phrase prefix
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
---------
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
26
26
- Add allowlist setting for ingest-geoip and ingest-useragent ([#15325](https://github.com/opensearch-project/OpenSearch/pull/15325))
27
27
- Adding access to noSubMatches and noOverlappingMatches in Hyphenation ([#13895](https://github.com/opensearch-project/OpenSearch/pull/13895))
28
28
- Add support for index level max slice count setting for concurrent segment search ([#15336](https://github.com/opensearch-project/OpenSearch/pull/15336))
29
+
- Add concurrent search support for Derived Fields ([#15326](https://github.com/opensearch-project/OpenSearch/pull/15326))
29
30
30
31
### Dependencies
31
32
- Bump `netty` from 4.1.111.Final to 4.1.112.Final ([#15081](https://github.com/opensearch-project/OpenSearch/pull/15081))
0 commit comments