【发布时间】:2015-07-02 15:26:45
【问题描述】:
我有以下 json 数据:
{
"employee_id": "190",
"working_office": "India",
"skillsDetails": {
"CSS": "Beginner",
"Financial Services & Insurance": "Beginner",
"Planning": "Moderate",
"Pig": "Beginner",
"SQL": "Moderate",
"Go": "Beginner",
"iOS": "Beginner",
"Storytelling & Storyboarding": "Beginner",
"Relationship building": "Moderate",
"Facilitation": "Moderate"
}
我已经在所有字段上应用了分析器,例如employee_id、working_office。但我对如何将它应用于嵌套字段一无所知-skillDetails
{
"profiles": {
"dynamic" : "true",
"properties": {
"employee_id": {
"type": "integer",
"analyzer":"standard"
},
"working_office": {
"type": "string",
"analyzer":"edge_ngram_analyzer"
},
"skillsDetails":{
//I need to apply analyser here.Also I Dont want to hardcode the fieldNames like java,sql ,etc. I want the analyzer to apply over all skillsdetails
}
}
任何指示或帮助都会非常有帮助。
【问题讨论】:
标签: java search elasticsearch lucene elasticsearch-plugin