elasticsearch multi field type
Elastic/Elasticsearch 2013. 2. 8. 12:04http://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html
It needs a sorting field.
"subject": {
"type": "multi_field",
"fields": {
"subject": {
"type": "string",
"index": "analyzed",
"store": "yes",
"analyzer": "kr_analyzer"
},
"sort_subject": {
"include_in_all": false,
"type": "string",
"index": "not_analyzed",
"store": "yes"
}
}
},