Multiple properties in facet (elasticsearch)
问题 I have following index: curl -XPUT "http://localhost:9200/test/" -d ' { "mappings": { "files": { "properties": { "name": { "type": "string", "index": "not_analyzed" }, "owners": { "type": "nested", "properties": { "name": { "type":"string", "index":"not_analyzed" }, "mail": { "type":"string", "index":"not_analyzed" } } } } } } } ' With sample documents: curl -XPUT "http://localhost:9200/test/files/1" -d ' { "name": "first.jpg", "owners": [ { "name": "John Smith", "mail": "js@example.com" }, {