Authored by Gino Zhang

品类页/模糊搜索页增加推荐词的功能 增加一个productAttrField字段去聚合

... ... @@ -352,7 +352,7 @@
"analyzer": "ik_complex",
"search_analyzer": "ik_complex"
},
"phrase": {
"phrase": {
"type": "string",
"index": "not_analyzed",
"doc_values": true,
... ... @@ -526,13 +526,21 @@
"type": "string",
"store": false,
"analyzer": "ik_complex",
"search_analyzer": "ik_complex"
"search_analyzer": "ik_complex",
"copy_to": [
"searchField_ansj",
"productAttrField"
]
},
"pattern": {
"type": "string",
"store": false,
"analyzer": "ik_complex",
"search_analyzer": "ik_complex"
"search_analyzer": "ik_complex",
"copy_to": [
"searchField_ansj",
"productAttrField"
]
},
"isSpecial": {
"type": "string",
... ... @@ -765,14 +773,17 @@
},
"standardNames": {
"type": "string",
"analyzer":"comma_spliter"
"analyzer": "comma_spliter"
},
"standardOnlyNames": {
"fields": {
"standardOnlyNames": {
"type": "string",
"index": "not_analyzed",
"copy_to": "searchField_ansj"
"copy_to": [
"searchField_ansj",
"productAttrField"
]
},
"standardOnlyNames_ansj": {
"type": "string",
... ... @@ -844,6 +855,14 @@
"analyzer": "lowercase_keyword_ngram",
"search_analyzer": "ik_complex"
},
"productAttrField": {
"type": "string",
"analyzer": "comma_spliter",
"search_analyzer": "ik_complex",
"fielddata": {
"format": "doc_values"
}
},
"isGlobal": {
"type": "string",
"index": "not_analyzed",
... ... @@ -961,7 +980,11 @@
"type": "string",
"store": false,
"analyzer": "ik_complex",
"search_analyzer": "ik_complex"
"search_analyzer": "ik_complex",
"copy_to": [
"searchField_ansj",
"productAttrField"
]
},
"sknDefaultImg": {
"type": "string",
... ...