Skip to content
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

Multi_match query for boolean fields is not work #32676

Closed
vara855 opened this issue Aug 7, 2018 · 1 comment
Closed

Multi_match query for boolean fields is not work #32676

vara855 opened this issue Aug 7, 2018 · 1 comment

Comments

@vara855
Copy link

vara855 commented Aug 7, 2018

Describe the feature: Multi_match query for boolean fields is not work

Elasticsearch version : 6.2.3

Plugins installed: [elasticsearch-carrot2(6.2.3)]

JVM version (java -version): 1.8.0_151

OS version (uname -a if on a Unix-like system): win 10

Description of the problem including expected versus actual behavior:
multi_match query for boolean index fields is not work.
If index have sample structure:
"_index": "index", "_type": "_doc", "_id": "1", "_score": 1, "_source": { "my": { "boolean": true, "text": "foo bar" } } }
AND query is
GET index/_search { "query": { "multi_match": { "query": true, "fields": [ "my.*boolean"] } } }

AR: request does not find docs
ER: request should find docs with field "boolean": true

Steps to reproduce:
1.DELETE index
2. PUT index/_doc/1 { "my": { "boolean": true, "text": "foo bar" } }
3. GET index/_search { "query": { "multi_match": { "query": true, "fields": [ "my.*boolean"] } } }

@jimczi
Copy link
Contributor

jimczi commented Aug 7, 2018

Closing as duplicate of #31798 . Thanks for reporting @vara855

@jimczi jimczi closed this as completed Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants