Hello, 


I have the following document:


<basic><contact>someem...@email.com</contact></basic>


I index the above document relying on dynamic mappings.

First I set an initial mapping as :

{
    "index1" :
    {
        "date_detection":false,
        "properties":
        {
            "basic": 
            {
                "type": nested
            }
        }
    }
}


I try to search for this document using the following nested filter:

 NestedFilterBuilder filterBasic = new NestedFilterBuilder("basic", 
QueryBuilders.fieldQuery("basic.content", "someem...@email.com"))


When I print out the mappings (after indexing) I get the following:

{"requests":{"date_detection":false,"properties":{"basic":{"type":"nested","properties":{"contact":{"type":"string"}}}}}}


I get no results (with elastic search v. 0.90.0). 

Is the filter incorrect for the mapping provided?

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/f3dff12b-a40b-4e87-add6-70ee13c4d8c1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to