I'm trying to use a nested object type to store some additional data but 
running into some inconsistencies versus the documentation when it comes to 
searching. From the documentation it sounds like a simple search like

{
  "query": {
    "bool": {
      "must" : {
        "query_string": {
          "query": "jane"
        }
      }
    }
  }
}

Should not return any documents where the only instance of "jane" is in a 
nested document. Yet when I run this search against my test data it does. 
Mystery deepens when I then use the explain API to try work out why it was 
returned and it says the document was matched on _all yet I have 
include_in_all set to false in the mapping.

mapping and data for the two documents 
here https://gist.github.com/anonymous/febab9c09bdf9ea9849c
Search results here https://gist.github.com/anonymous/74311fab5e2452938505
Explain here https://gist.github.com/anonymous/4fed3653658d70fb0df8

-- 
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/4a2ab8e2-f725-4eb5-a4ee-1cb9d6a5097f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to