Elasticsearch: is there a way to declare for all (possibly dynamic) subfields of an object field as string?
问题 I have a doc_type with a mapping similar to this very simplified one: { "test":{ "properties":{ "name":{ "type":"string" }, "long_searchable_text":{ "type":"string" }, "clearances":{ "type":"object" } } } } The field clearances should be an object, with a series of alphanumeric identifiers for filtering purposes. A typical document will have this format: { "name": "Lord Macbeth", "long_searchable_text": "Life's but a walking shadow, a poor player, that..." "clearances": { "glamis":