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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to