My query is as below , which gives me all the colleges with state code
"MA" i want all the colleges that are in "MA" or "NY" how to add OR filter
{
"query": {
"filtered": {
"query": {
"nested": {
"path": "programs",
"query": {
"bool": {
"must": [
{
"match": {
"programs.progName": "Computer and Information Sciences"
}
},
{
"range": {
"programs.Bachelor": {
"gt": 0
}
}
}
]
}
}
}
},
"filter": {
"and": {
"filters": [
{
"bool": {
"must": [
{
"term": {
"state": "MA"
}
},
{
"range": {
"costOutofstateTution": {
"gte": 0,
"lte": 30000
}
}
}
]
}
}
]
}
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9614e30f-60e8-44cc-b614-6e5c18f2bc22%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.