-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Queries with string and keyword fields returning incorrect results #3215
Comments
Please follow the bug template to help prevent churn -- specifically of interest here are the cluster environment, and the index configuration as a repro step. |
@skumarp7
If sessionId is a keyword field, this query will return all records/documents with sessionId in the index |
Hi @acarbonetto , Below is my sample index mapping:
As per recommendation, "sessionId" field was set to "keyword" and not text. Even after the change, below query did not return any values:
We have enough records with sessionId field with valid value mapped to it: Ex:
Are we missing something in the configuration. This looks more like a issue from the plugin itself. |
I can get nothing when the The reproduce:
return
But it works when set to |
In the latest code base (3.0), when _source disabled, the query will throw
|
We have enabled opensearch-sql plugin in the Opensearch so that we can run SQL like queries on opensearch data .
When we run following command which is very basic, we get following error:
How to decide what should be the data type of the field, because after changing to keyword also some queries are not running and fetching relevent fields and its value, e.g.
Note that for the above query, there are records with sessionId field.
Ideally this plugin should be able to excute queries with text type field also.
Is there any limitations to execute queries from this opensearch-sql plugin?
The text was updated successfully, but these errors were encountered: