Custom metadata for elasticsearch documents

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.

+7
search metadata elasticsearch
source share

No one has answered this question yet.

See related questions:

599
Solr vs ElasticSearch
89
elasticsearch vs MongoDB for application filtering
10
Elasticsearch fails if the document has a display mismatch for the field
2
How to reject "invalid" documents in ElasticSearch
2
Couchbase - Elasticsearch: Custom Dynamic Type
2
Elasticsearch NEST retrieves _id internal metadata field
one
Elasticsearch - adding a custom field / type to a document
0
When to use "_type" in Elasticsearch?
0
Is it possible to update the field mapping data type in a document in elasticsearch 6.3.2?
0
ElasticSearch Document Field Size

All Articles