Hello Ravi , Can you provide some data indexed. Is can be possible that propY:ABC value doesn't exist and the AND gave a null set.
Thanks Vineeth On Mon, Sep 1, 2014 at 2:55 AM, ravi kumar <[email protected]> wrote: > Here is mapping of my elastic search > > {"MYAPP":{"mappings":{ > "XX":{ > "_ttl":{"enabled":true}, > "properties":{"propX":{"type":"integer"}} > }, > "YY":{ > "_ttl":{"enabled":true}, > "properties":{"propY":{"type":"integer"}} > }, > } > } > } > > I want execute query like propX:XYZ AND propY:ABC > > The problem is if i do this > > propX:XYZ AND propY:ABC > > It return nothing, but this > > propX:XYZ > > return result. I think the problem is propX and propY are two different > region thats why using both returns nothing. > > Here is my JAVA code: > > SearchResponse response = client.prepareSearch("MYAPP") > .setQuery(QueryBuilders.queryString("propX:XYZ AND propY:ABC")).execute() > .actionGet(); > > -- > 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/353a5e38-a31d-487d-bc56-9625d77ec6e2%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/353a5e38-a31d-487d-bc56-9625d77ec6e2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGdPd5%3Ds6Ek4wtmBHYQd9-Q8t_RK8GgyvKG-76qK1H%3DHO1x_AA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
