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

Structured Query: Can not choose (true or false) to a boolean field #210

Closed
bogdanvlviv opened this issue Oct 28, 2015 · 1 comment
Closed

Comments

@bogdanvlviv
Copy link

onoff - boolean type

I choose
must type.onoff #Can not add choose (true or false) to a boolean field
{
"query": {
"bool": {
"must": [
{
"match_all": {}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 10,
"sort": [],
"facets": {}
}

need =>

{
"query": {
"bool": {
"must": [
{
"term": {
"onoff": # true or false
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 10,
"sort": [],
"facets": {}
}

@bogdanvlviv bogdanvlviv changed the title Structured Query: Can not add data to a boolean field Structured Query: Can not add choose (true or false) to a boolean field Oct 28, 2015
@bogdanvlviv bogdanvlviv changed the title Structured Query: Can not add choose (true or false) to a boolean field Structured Query: Can not choose (true or false) to a boolean field Oct 28, 2015
philipskokoh added a commit to philipskokoh/elasticsearch-head that referenced this issue Nov 20, 2015
…cated 'from and 'to' for range query in structured query tab
@philipskokoh
Copy link
Collaborator

I add 'term' ops for boolean type since that is the default operation for boolean type.
https://www.elastic.co/guide/en/elasticsearch/reference/2.0/boolean.html

The update reflected on #218

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