Re: not able to pass multiple term in bool query

2014-03-17 Thread Subhadip Bagui
Hi Binh, I was an issue with json format creation. Now I validated the json and getting result. Thanks.. -- 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 elast

Re: not able to pass multiple term in bool query

2014-03-17 Thread Binh Ly
Can you show the full error message details? -- 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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion

Re: not able to pass multiple term in bool query

2014-03-17 Thread Subhadip Bagui
My mistake!! the json format was wrong. tried below and it's working fine. Thanks David > { > "query": { > "filtered": { > "query": { > "bool": { > "must": [ > { > "range": { >

Re: not able to pass multiple term in bool query

2014-03-17 Thread David Pilato
I just tried to copy and paste your JSON in:  http://jsonformatter.curiousconcept.com/ I get Error:Expecting comma or ], not }.[Code 6, Structure 86] Error:Expecting comma or }, not ].[Code 7, Structure 87] Error:Multiple JSON root elements[Code 22, Structure 115] Error:Extra closing }[Code 14, St

not able to pass multiple term in bool query

2014-03-17 Thread Subhadip Bagui
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 wh