I wandered the best way to add custom metadata for documents in elasticsearch.
Let's say I have a document like Test
"Test": { "properties": { "TestName": { "type": "string" }, "LastRunTime": { "type": "string" }, "id": { "type": "string" }, "lastUpdate": { "type": "string" } .... }
And I would like to add a field name for each field name. eg.
"TestName": { "type": "string" "display_name": "Test Name" }, "LastRunTime": { "type": "string" "display_name": "Last Run Time" }
What is the best way to do this? I know that in index matching there is a field called _meta , is that so? I would also like this metadata to be returned in every search query that I perform on this index.
search metadata elasticsearch
Lital
source share