Is there a way to add something like static data or metadata to an index?
I have some data (some fields) in my indices that ALWAYS get the same values. Is there a way to set this fields to some static / metadata field in the index, so it is only once in the index and then it is retrieved in every search. If I set it to every document I guess it will take a lot of space so it makes no sense for me. It would be something like the "_index" value (https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index-field.html)
I do not need this fields for searching, I just need them to be retrieved in the searches.
I know Elasticsearch have a "_meta" field (https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-meta-field.html) I can set in the mapping of an index, however, to retrieve it I have to perform a get indexName/_mapping. This also does not make much sense in my case because I would need two queries and I would need to know the exact index name, when I sometimes search in several indices at once.
Thanks in advance!