1
문서와 쿼리에서 모두 아포스트로피를 무시할 수 있습니까?ElasticSearch에서 아포스트로피를 무시하는 방법
문서 :
{
name: "Ch`iroki the Big Dud"
}
검색어 :
아직 결과에서 원본 텍스트를 얻고 다른 언어 분석기를 사용하는 동안name match "Ch`irki"
.
replace_pattern char_filter를 추가하려고했지만 작동하지 않았습니다.
{
"char_filters": ["replace_apostrophe"],
"text": "a'b'c"
}
:
{
"char_filters": ["replace_apostrophe"],
"text": "a'b'c"
}
이것은 _analyze 응답입니다 :
{
"settings": {
"analysis": {
"char_filter": {
"replace_apostrophe": {
"type": "pattern_replace",
"pattern": "'",
"replacement": ""
}
}
}
}
}
이것은 _analyze 요청입니다 :
편집
이 인덱스 설정입니다
어디서 잘못 되었나요?
색인 설정 및 매핑을 표시 할 수 있습니까? – Val