Now if I want to create an alias for this index which has all the
documents with fields as above except the secret_field. I can use the
term filter in the alias creation but that works at document level and
filters the documents based on specified terms. So I am wondering is
there any other method to filter only field but not the whole document
from index.
Now if I want to create an alias for this index which has all the
documents with fields as above except the secret_field. I can use the
term filter in the alias creation but that works at document level and
filters the documents based on specified terms. So I am wondering is
there any other method to filter only field but not the whole document
from index.
I'm not sure I understood what you are looking for.
May be exclude is what you want?
See: Elasticsearch Platform — Find real-time answers at scale | Elastic
This might have worked if Elasticsearch can apply mapping seperately to
aliases. As it seems in version 1.3.2, the mapping is only applied to
the index and alias inherent that from index. So I can not use source
exclusion, as I want to have secret field in original index and hidden
in the alias.
Now if I want to create an alias for this index which has all the
documents with fields as above except the secret_field. I can use the
term filter in the alias creation but that works at document level and
filters the documents based on specified terms. So I am wondering is
there any other method to filter only field but not the whole document
from index.
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.