0
전체 필드 검색에 yii2-elasticsearch를 사용하려는 경우 여러 필드에서 할당 된 분석기로 문서의 모든 필드를 검사합니다.분석기 Elasticsearch 다중 단어, 다중 필드 검색에서 매핑 용
그래서 매핑이있는 경우 :
"settings": {
"analysis": {
"analyzer": {
"lowercase_keyword": {
"tokenizer": "keyword",
"filter": [ "lowercase"]
}
}
}
},
"mappings" : {
"typeName" :{
"properties" : {
"id" : {
"type" : "string",
"index" : "not_analyzed"
},
"company_name" : {
"type" : "string",
"index" : "analyzed",
"analyzer" : "lowercase_keyword",
},
"product_name" : {
"type" : "string",
"index" : "analyzed",
"analyzer" : "lowercase_keyword",
},
"product_desc" : {
"type" : "string",
"index" : "not_analyzed"
},
}
}
}
}
을 나는 COMPANY_NAME, 제품 _, product_desc에서 단어를 검색 할 수 있습니다.