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 Sep 14, 2024
1 parent aaa92ae commit b3f3b32
Show file tree
Hide file tree
Showing 6 changed files with 1,084 additions and 173 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- MultiTermQueries in keyword fields now default to `indexed` approach and gated behind cluster setting ([#15637](https://github.com/opensearch-project/OpenSearch/pull/15637))
- [Workload Management] QueryGroup resource cancellation framework changes ([#15651](https://github.com/opensearch-project/OpenSearch/pull/15651))
- Fallback to Remote cluster-state on Term-Version check mismatch - ([#15424](https://github.com/opensearch-project/OpenSearch/pull/15424))
- Flat object field use IndexOrDocValuesQuery to optimize query ([#14383](https://github.com/opensearch-project/OpenSearch/issues/14383))

### Dependencies
- Bump `com.azure:azure-identity` from 1.13.0 to 1.13.2 ([#15578](https://github.com/opensearch-project/OpenSearch/pull/15578))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,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 final XContentParser parser;

Expand All @@ -49,10 +53,6 @@ public class JsonToStringXContentParser extends AbstractXContentParser {

private final DeprecationHandler deprecationHandler;

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

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

0 comments on commit b3f3b32

Please sign in to comment.