Hi,

I'm trying to make a bool query where sending mutiple term under should 
block as given in link 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html

But I'm getting SearchPhaseExecutionException while trying to execute below 
query. Please inform what is the correct way to send the query

POST /aricloud/_search
{
    "query": {
        "filtered": {
           "query": {
           "bool": {
              "must": [
                 {
                   "range": {
                      "NODE_CATEGORY_ID": {
                         "gte": 10,
                         "lte": 20,
                         "boost": 2.0
                      }
                   }
                  }
              ] ,
              "must_not": [
                 {
                   "term": {
                     "NODE_ID": {
                      "value": "12235"
                    }
                }     
                 }
              ],
              "should": [
                 {
                    "term": {
                       "NODE_PRIVATE_IP_ADDRESS": {
                          "value": "10.123.124.40"
                       }
                    },
                    "term": {
                       "NODE_PUBLIC_IP_ADDRESS": {
                          "value": "125.31.108.72"
                       }
                    }
                    }
                 }
              ]
           }
           },
           "filter": {
               "range": {
                  "NODE_CREATE_TIME": {
                     "from": "2014-03-14 16:22:35",
                     "to": "2014-03-14 22:43:55"
                  }
               }
           }
        }
    },
    "sort": [
       {
          "NODE_ID": {
             "order": "asc"
          }
       }
    ]
}


-- 
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/fb6b4846-7ceb-4046-a17b-c33de4d7bc79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to