Open piemon-nyah opened 1 month ago
@piemon-nyah Can you reproduce this on the latest 7.17.x? See https://www.elastic.co/support/eol.
Pinging @elastic/es-search-relevance (Team:Search Relevance)
I suggest using the https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html API with the rewrite
parameter to see what low level query your provided one gets transformed into.
Additionally, using the explain
API: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html
Both of those should help debug this further & please try to reproduce on a modern version (at least latest 7 series). We can try to reproduce ourselves, but that makes it difficult without any test data.
Additionally, that type of runtime field is pulling directly from _source
, so knowing how that value is included in source (if its mdc: {x-cos-request-id: ...}
vs mdc.x-cos-request-id: ...
)
Elasticsearch Version
7.12.0
Installed Plugins
No response
Java Version
bundled
OS Version
AnolisOS Linux 7.9
Problem Description
When I used this DSL query, I found that my query condition was invalid. It returned not only one piece of data, but also fields other than app_name and mdc, and data that was not cos-core.
However, when I removed the term condition of mdc.x-cos-request-id, the query was normal. I made sure that there is actually data such as mdc.x-cos-request-id equal to 84b0bb8dca944c48bb374ba01b6f3456 mapping is this
Steps to Reproduce
As mentioned above
Logs (if relevant)
No response