-
Couldn't load subscription status.
- Fork 2.3k
Closed
Labels
SearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't workinguntriaged
Description
Describe the bug
when apply terms query on wildcard field, the result is not correct
Related component
Search
To Reproduce
- Create a simple index contains wildcard field
PUT terms_query_index { "mappings": { "properties": { "wild": { "type": "wildcard" } } } } - Insert data
POST terms_query_index/_doc { "wild": "term" } - Search wildcard field with terms query
Search Result:
GET terms_query_index/_search { "query": { "terms": { "wild": ["term"] } } }{ "took": 37, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": { "value": 0, "relation": "eq" }, "max_score": null, "hits": [] } }
Expected behavior
the terms query should return the inserted data, instead of nothing
Additional Details
No response
Metadata
Metadata
Assignees
Labels
SearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't workinguntriaged
Type
Projects
Status
✅ Done