Skip to content

Commit

Permalink
[NOCOMMIT] Revert "Flat object field should delegate to keyword field…
Browse files Browse the repository at this point in the history
… for most query types (#14383)"

This reverts commit 9ddee61.

Trying to identify the source of a benchmark regression for big5
keyword-in-range query.

Signed-off-by: Michael Froh <[email protected]>
  • Loading branch information
msfroh committed Oct 28, 2024
1 parent 6385ad3 commit 5f5317d
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 1,989 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,38 @@ teardown:
- match: { error.root_cause.0.reason: "Mapping definition for [data] has unsupported parameters: [analyzer : standard]"}
- match: { status: 400 }

# Wildcard Query with dot path.
- do:
catch: bad_request
search:
body: {
_source: true,
query: {
"wildcard": {
"catalog.title": "Mock*"
}
}
}
- match: { error.root_cause.0.type: "query_shard_exception" }
- match: { error.root_cause.0.reason: "Can only use wildcard queries on keyword and text fields - not on [catalog.title] which is of type [flat_object]"}
- match: { status: 400 }

# Wildcard Query without dot path.
- do:
catch: bad_request
search:
body: {
_source: true,
query: {
"wildcard": {
"catalog": "Mock*"
}
}
}
- match: { error.root_cause.0.type: "query_shard_exception" }
- match: { error.root_cause.0.reason: "Can only use wildcard queries on keyword and text fields - not on [catalog] which is of type [flat_object]" }
- match: { status: 400 }

# Aggregation and Match Query with dot path.
- do:
catch: bad_request
Expand Down
Loading

0 comments on commit 5f5317d

Please sign in to comment.