Why my bool query is not working?


(Sumit Guptaa) #1

Hi all,

curl -XGET 'http://localhost:9200/amazon/book/_search' -d '{
"query":
{
"bool" :
{
"must" :[
{"term":{"name":"call"}},
{"range":{"pages":{"from":200,"to":300}}}
],
"must_not": [
{"term":{"book.author.first_name":"jack"}}
],
"should": [
{"term":{"book.author.last_name":"london"}}
]

			}
		}
}

}'

In this query i am getting SearchphaseExecutionException....

Regards,
Sumit Gupta


(Igor Motov) #2

It would be easier for us to help you if you provided some additional
details about your problem such as the query that is causing it and the
error message that you are getting.

On Monday, April 2, 2012 5:31:20 AM UTC-4, Sumit Gupta wrote:

Hi all,

i am facing problem in elasticsearch when we accessing bulk data
through url query on the other system that is stored in couchdb and
indexed by elasticsearch....

please help me...

Regards,
Sumit Gupta


(system) #3