-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
default_field param of QUERY() won't be deployed to Query String Query #32602
Labels
Comments
Pinging @elastic/es-search-aggs |
@astefan Could you take a look at this? |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Sep 18, 2018
Previously multiple comma separated lists of options where not recognized correctly which resulted in only the last of them to be taked into account, e.g.: For the following query: SELECT * FROM test WHERE QUERY('search', 'default_field=foo', 'default_operator=and')" only the `default_operator=and` was finally passed to the ES query. Fixes: elastic#32602
@kosho Meanwhile as a workaround you could do the following: |
matriv
pushed a commit
that referenced
this issue
Sep 19, 2018
Previously multiple comma separated lists of options where not recognized correctly which resulted in only the last of them to be taked into account, e.g.: For the following query: SELECT * FROM test WHERE QUERY('search', 'default_field=foo', 'default_operator=and')" only the `default_operator=and` was finally passed to the ES query. Fixes: #32602
matriv
pushed a commit
that referenced
this issue
Sep 19, 2018
Previously multiple comma separated lists of options where not recognized correctly which resulted in only the last of them to be taked into account, e.g.: For the following query: SELECT * FROM test WHERE QUERY('search', 'default_field=foo', 'default_operator=and')" only the `default_operator=and` was finally passed to the ES query. Fixes: #32602
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch version (
bin/elasticsearch --version
): 6.3.2Plugins installed: []
JVM version (
java -version
): 1.8.0_181OS version (
uname -a
if on a Unix-like system): Darwin Kernel Version 17.7.0Description of the problem including expected versus actual behavior:
As I am supplying
default_field=<field>
parameter in theQUERY
operand in theWHERE
clause, it won't be deployed intoquery_string
query.Steps to reproduce:
_xpack/sql/translate
endpoint.default_field
is not shown in the response whiledefault_operator=and
is reflected.Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: