msearch not working with bool must

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

msearch not working with bool must

vineeth mohan
Hi ,

The following works perfectly.
cat names
{"index":"events","type":"news"}
{"query":{"term":{"Type":"MarketEvent"}}}
{"query":{"term":{"Type":"MarketEvent"}}}

curl -XGET 'http://localhost:9200/_msearch'  --data-binary @names

The following also works
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

But queries with more than 1 bool doesn't work -
cat names
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

curl -XGET 'http://72.94.201.24:8003/_msearch'  --data-binary @names
{"error":"must doesn't support arrays"}

Am not seeing any log for this in logs ( not in DEBUG mode too)
Is this a bug ?

Thanks
           Vineeth

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: msearch not working with bool must

vineeth mohan
Can someone please answer to this.
Am blocked with this issue.

Thanks
          Vineeth

On Thu, Jun 6, 2013 at 3:50 PM, Vineeth Mohan <[hidden email]> wrote:
Hi ,

The following works perfectly.
cat names
{"index":"events","type":"news"}
{"query":{"term":{"Type":"MarketEvent"}}}
{"query":{"term":{"Type":"MarketEvent"}}}

curl -XGET 'http://localhost:9200/_msearch'  --data-binary @names

The following also works
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

But queries with more than 1 bool doesn't work -
cat names
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

curl -XGET 'http://72.94.201.24:8003/_msearch'  --data-binary @names
{"error":"must doesn't support arrays"}

Am not seeing any log for this in logs ( not in DEBUG mode too)
Is this a bug ?

Thanks
           Vineeth

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: msearch not working with bool must

vineeth mohan
I have moved this to stackoverflow - http://stackoverflow.com/questions/16995294/possible-bug-msearch-not-working-with-bool-must

Thanks
           Vineeth

On Fri, Jun 7, 2013 at 7:42 PM, Vineeth Mohan <[hidden email]> wrote:
Can someone please answer to this.
Am blocked with this issue.

Thanks
          Vineeth


On Thu, Jun 6, 2013 at 3:50 PM, Vineeth Mohan <[hidden email]> wrote:
Hi ,

The following works perfectly.
cat names
{"index":"events","type":"news"}
{"query":{"term":{"Type":"MarketEvent"}}}
{"query":{"term":{"Type":"MarketEvent"}}}

curl -XGET 'http://localhost:9200/_msearch'  --data-binary @names

The following also works
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

But queries with more than 1 bool doesn't work -
cat names
{"index":"events","type":"news"}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}
{"query":{"bool":{"must":[{"query_string":{"query":"*","fields":["Events.Event"],"default_operator":"AND"}},{"term":{"Type":"MarketEvent"}}]}}}

curl -XGET 'http://72.94.201.24:8003/_msearch'  --data-binary @names
{"error":"must doesn't support arrays"}

Am not seeing any log for this in logs ( not in DEBUG mode too)
Is this a bug ?

Thanks
           Vineeth


--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.