Hi all - I just observed something weird and was wondering if anyone else
has seen this type of behavior and what might be the possible reason for
the same.
We are using 3 types within a single index. When I execute my
filtered-query against a specific type, I get a few matches. However when I
run the same query but specify all the types, I do not get any documents.
For instance:
Query against http://[host]:9201/index_alias1/type1 ---> Gives me a few
matches
Query against http://[host]:9201/index_alias1/type1, type2, type3 --->
Gives me zero matches
Note that these three types have different mappings altogether.
Very curious to know what might be causing this inconsistent behavior.
Do the different mappings contain fields with similar names, but different
types (string, int, long, etc.)? If so, are there any errors in the log?
Since the types all share a same Lucene index, the fields with similar
names must be of the same field type even if they are in different
elasticsearch types.
Hi all - I just observed something weird and was wondering if anyone else
has seen this type of behavior and what might be the possible reason for
the same.
We are using 3 types within a single index. When I execute my
filtered-query against a specific type, I get a few matches. However when I
run the same query but specify all the types, I do not get any documents.
For instance:
Query against http://[host]:9201/index_alias1/type1 ---> Gives me a few
matches
Query against http://[host]:9201/index_alias1/type1, type2, type3 --->
Gives me zero matches
Note that these three types have different mappings altogether.
Very curious to know what might be causing this inconsistent behavior.
Hi Ivan - Thanks for your response. There are no errors in the logs.
However I do have three fields of the same name and same type (string)
across two different elasticsearch types.
So as a best design practice, is it recommended that the field names should
be different within an index even if they are spread across different
elasticsearch types?
-Amit.
On Sun, Nov 24, 2013 at 10:53 PM, Ivan Brusic ivan@brusic.com wrote:
Do the different mappings contain fields with similar names, but different
types (string, int, long, etc.)? If so, are there any errors in the log?
Since the types all share a same Lucene index, the fields with similar
names must be of the same field type even if they are in different
elasticsearch types.
Hi all - I just observed something weird and was wondering if anyone else
has seen this type of behavior and what might be the possible reason for
the same.
We are using 3 types within a single index. When I execute my
filtered-query against a specific type, I get a few matches. However when I
run the same query but specify all the types, I do not get any documents.
For instance:
Query against http://[host]:9201/index_alias1/type1 ---> Gives me a
few matches
Query against http://[host]:9201/index_alias1/type1, type2, type3 --->
Gives me zero matches
Note that these three types have different mappings altogether.
Very curious to know what might be causing this inconsistent behavior.
would be great if you could create a reproducible example using curl and
gist, so we can check what is wrong with the query, the data, the
configuration or elasticsearch
Hi Ivan - Thanks for your response. There are no errors in the logs.
However I do have three fields of the same name and same type (string)
across two different elasticsearch types.
So as a best design practice, is it recommended that the field names
should be different within an index even if they are spread across
different elasticsearch types?
-Amit.
On Sun, Nov 24, 2013 at 10:53 PM, Ivan Brusic ivan@brusic.com wrote:
Do the different mappings contain fields with similar names, but
different types (string, int, long, etc.)? If so, are there any errors in
the log? Since the types all share a same Lucene index, the fields with
similar names must be of the same field type even if they are in different
elasticsearch types.
Hi all - I just observed something weird and was wondering if anyone
else has seen this type of behavior and what might be the possible reason
for the same.
We are using 3 types within a single index. When I execute my
filtered-query against a specific type, I get a few matches. However when I
run the same query but specify all the types, I do not get any documents.
For instance:
Query against http://[host]:9201/index_alias1/type1 ---> Gives me a
few matches
Query against http://[host]:9201/index_alias1/type1, type2, type3
---> Gives me zero matches
Note that these three types have different mappings altogether.
Very curious to know what might be causing this inconsistent behavior.
Hi Alex - Let me give it a try. Since the index is big, I will need to take
out the portion of data which might be causing a problem in order to
prepare a standalone example. Let me try for that and come back.
-Amit.
On Tue, Nov 26, 2013 at 4:33 AM, Alexander Reelsen alr@spinscale.de wrote:
Hey,
would be great if you could create a reproducible example using curl and
gist, so we can check what is wrong with the query, the data, the
configuration or elasticsearch
Hi Ivan - Thanks for your response. There are no errors in the logs.
However I do have three fields of the same name and same type (string)
across two different elasticsearch types.
So as a best design practice, is it recommended that the field names
should be different within an index even if they are spread across
different elasticsearch types?
-Amit.
On Sun, Nov 24, 2013 at 10:53 PM, Ivan Brusic ivan@brusic.com wrote:
Do the different mappings contain fields with similar names, but
different types (string, int, long, etc.)? If so, are there any errors in
the log? Since the types all share a same Lucene index, the fields with
similar names must be of the same field type even if they are in different
elasticsearch types.
Hi all - I just observed something weird and was wondering if anyone
else has seen this type of behavior and what might be the possible reason
for the same.
We are using 3 types within a single index. When I execute my
filtered-query against a specific type, I get a few matches. However when I
run the same query but specify all the types, I do not get any documents.
For instance:
Query against http://[host]:9201/index_alias1/type1 ---> Gives me a
few matches
Query against http://[host]:9201/index_alias1/type1, type2, type3
---> Gives me zero matches
Note that these three types have different mappings altogether.
Very curious to know what might be causing this inconsistent behavior.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.