Hi guys,
How to reproduce: https://gist.github.com/rmat0n/7b6f4f0398dc5f0966b4
I created 2 mapping with a testtext field on both, the difference is that
each mapping have a different index_name for the field: the first mapping
use 1.testtext and the second mapping use 2.testtext.
Then putting 1 object on each mapping. Here I have 2 objects with the same
field test text but on different mappings.
Now I query using the exists filter (also tested using the exists syntax
in the query_string) on the field name:
{
"filter": {
"exists": {
"field" : "testtext"
}
}
}
This query only returns the document added to the first mapping and not the document added to the second mapping.
I expected to get back the 2 objects because both have the testtext field.
Reading the documentation http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-object-type.html#_path_3: there is an automatic detection from logical full path and into the index_name and vice versa.
So, even if I don't query the index_name, I should be able to get it by the field name (path).
I could have expected to get both or none but only the first seems weird. Maybe I am missing something.
Thanks in advance.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/09ea42ae-3d7c-4306-a334-cd5ee4171ad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.