I was looking for a feature where i can pass first name, last name as plain string to Elasticsearch and just index these fields so i can search but do not store them in source (Due to PII data).
Came across this copy_to feature where i can store multiple fields from source but the original fields need to be there in source.
This is exactly what i was looking for, I didn't know that we can exclude certain fields from _source after indexing is done so they are only available for search and not in the _source as plain text.
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.