-
Notifications
You must be signed in to change notification settings - Fork 186
Wildcard syntax problem #368
Comments
Thanks @aetter , we will have a look. |
Hi @mlrlite, could you post your index mapping and several documents so we can reproduce the issue from our side? |
Hi @dai-chen, try indexing these:
Then run:
curl is doing something weird on the encoding, so I'm just using the shorthand, but I assume you could also get it going with curl. |
@aetter Thanks! Will try it out. |
@aetter and @mlrlite, I can reproduce from my side now. For your context, there is a rewriter in our codebase to rewrite field name in your query if it is a multi-field (ex. keyword inside text). So your query should be rewritten to Code related: Line 249 in d09e83a
We will fix the issue and for now you can do Here is how I reproduced the issue with our latest code in Kibana:
|
@dai-chen thank you, I will try this and get back with you, thanks for looking into this! |
Another similar issue.
Query on type.keyword success
Query on type return empty result
Why wildcard query on text field return empty result?The text field query based on token. the "issue_snapshots:SSLError" has been analyzed as "issue_snapshots:sslerror". so any expected string "issue_snapshots:S*" doesn't match it.
|
This is already fixed in new query engine. However, the new engine is disabled by default for now. You can enable it by following the instruction here: https://github.com/opendistro-for-elasticsearch/sql/blob/master/docs/user/admin/settings.rst#opendistro-sql-engine-new-enabled |
See opendistro/for-elasticsearch-docs#177
The text was updated successfully, but these errors were encountered: