Search request response format should not be coupled with query format #11718
Labels
enhancement
Enhancement or improvement to existing feature or request
Search:Performance
Search
Search query, autocomplete ...etc
Is your feature request related to a problem? Please describe
While working on query rewriting, I noticed that the query response format in opensearch is tightly coupled with query format. It should just be data dependent allowing translation into more efficient queries without impacting the response format. For example:
The response for
is
whereas for below query:
it is:
While the difference in above seems minimal, this can easily break the end client.
Describe the solution you'd like
We should reevaluate all the query response types and ensure they are data oriented instead of being coupled with query format.
Related component
Search
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: