You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some discrepancies between some input query, and the final input query received by search request processors at runtime. This is due to the internal query construction done in OpenSearch.
So, writing some transform like query.term.my_field will fail, as it actually needs to be query.term.my_field.value. It will succeed on the UI (since UI only has access to the initial query), but fail at runtime, with something like the following:
There may be other examples / edge cases that can trigger the same unexpected failures. Further investigation is needed on how/when the query gets parsed & transformed. If it is possible to fetch the transformed query on the UI, then we can display it somewhere, and use it as the input JSON to the search request processors to prevent the errors.
If not, at the least, adding some regex checking to proactively provide some dynamic warning messages may help.
The text was updated successfully, but these errors were encountered:
There are some discrepancies between some input query, and the final input query received by search request processors at runtime. This is due to the internal query construction done in OpenSearch.
Example:
User writes below query:
which internally gets converted to
which is read by the processor.
So, writing some transform like
query.term.my_field
will fail, as it actually needs to bequery.term.my_field.value
. It will succeed on the UI (since UI only has access to the initial query), but fail at runtime, with something like the following:There may be other examples / edge cases that can trigger the same unexpected failures. Further investigation is needed on how/when the query gets parsed & transformed. If it is possible to fetch the transformed query on the UI, then we can display it somewhere, and use it as the input JSON to the search request processors to prevent the errors.
If not, at the least, adding some regex checking to proactively provide some dynamic warning messages may help.
The text was updated successfully, but these errors were encountered: