Skip to content

Commit

Permalink
Flat object field should delegate to keyword field for most query types
Browse files Browse the repository at this point in the history
Signed-off-by: kkewwei <[email protected]>
  • Loading branch information
kkewwei committed Jul 5, 2024
1 parent 74230b7 commit 8c24a6a
Show file tree
Hide file tree
Showing 6 changed files with 1,082 additions and 173 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Add batching supported processor base type AbstractBatchingProcessor ([#14554](https://github.com/opensearch-project/OpenSearch/pull/14554))
- Fix race condition while parsing derived fields from search definition ([14445](https://github.com/opensearch-project/OpenSearch/pull/14445))
- Add allowlist setting for ingest-common and search-pipeline-common processors ([#14439](https://github.com/opensearch-project/OpenSearch/issues/14439))
- Flat object field use IndexOrDocValuesQuery to optimize query ([#14383](https://github.com/opensearch-project/OpenSearch/issues/14383))

### Dependencies
- Bump `org.gradle.test-retry` from 1.5.8 to 1.5.9 ([#13442](https://github.com/opensearch-project/OpenSearch/pull/13442))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
* @opensearch.internal
*/
public class JsonToStringXContentParser extends AbstractXContentParser {
public static final String VALUE_AND_PATH_SUFFIX = "._valueAndPath";
public static final String VALUE_SUFFIX = "._value";
public static final String DOT_SYMBOL = ".";
public static final String EQUAL_SYMBOL = "=";
private final String fieldTypeName;
private XContentParser parser;

Expand All @@ -44,11 +48,6 @@ public class JsonToStringXContentParser extends AbstractXContentParser {

private DeprecationHandler deprecationHandler;

private static final String VALUE_AND_PATH_SUFFIX = "._valueAndPath";
private static final String VALUE_SUFFIX = "._value";
private static final String DOT_SYMBOL = ".";
private static final String EQUAL_SYMBOL = "=";

public JsonToStringXContentParser(
NamedXContentRegistry xContentRegistry,
DeprecationHandler deprecationHandler,
Expand Down
Loading

0 comments on commit 8c24a6a

Please sign in to comment.