I am slowly becoming ES-addicted :-). However after reading the list
archive still can't figure out the following. My document has title
and tags in two languages. The title is like this:
can´t figure out how to search for, say, "tag1". I've tried using
something as tags.es and tags.eu as name files without success even
when title.es does work.
can´t figure out how to search for, say, "tag1". I've tried using
something as tags.es and tags.eu as name files without success even
when title.es does work.
I assume you mean tags.en, not tags.eu. As I understand it, this should
work.
Hi, thank you for the fast answer! It is strange but I can't reproduce
it exactly in a new index. It seems that the problem is related to
having
documents with different structure inside the same type. Is this (not)
allowed?
can´t figure out how to search for, say, "tag1". I've tried using
something as tags.es and tags.eu as name files without success even
when title.es does work.
I assume you mean tags.en, not tags.eu. As I understand it, this should
work.
Hi, thank you for the fast answer! It is strange but I can't reproduce
it exactly in a new index. It seems that the problem is related to
having
documents with different structure inside the same type. Is this (not)
allowed?
All document types have a 'mapping' or type definition, which describes
how they should be indexed.
You can set this mapping manually, but if you don't, then Elasticsearch
will try to figure it out for you, based on the first time that it sees
each field.
Hi, thank you for the fast answer! It is strange but I can't reproduce
it exactly in a new index. It seems that the problem is related to
having
documents with different structure inside the same type. Is this (not)
allowed?
All document types have a 'mapping' or type definition, which describes
how they should be indexed.
You can set this mapping manually, but if you don't, then Elasticsearch
will try to figure it out for you, based on the first time that it sees
each field.
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.