# 기본 analyzer 확장 방법?

**URL:** <https://discuss.elastic.co/t/analyzer/271969>\
**Category:** 한국어 질문 및 토론\
**Created:** [May 3, 2021, 11:18am UTC](https://discuss.elastic.co/t/analyzer/271969 "2021-05-03T11:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jongpyo.lee](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jongpyo.lee](https://discuss.elastic.co/u/jongpyo.lee)\
**Post date:** [May 3, 2021, 11:18am UTC](https://discuss.elastic.co/t/analyzer/271969/1 "2021-05-03T11:18:28Z")

</div>

예제 데이터 입니다.

```auto
POST coding/_bulk
{"index":{"_id":"1"}}
{"language":"xyz_foo@abc"}

```

기본 `analyzer`는 `@`은 구분하지만 `_`기호는 구분하지 않는 것을 \_termvectors을 통해 확인하였습니다.

```auto
GET coding/_termvectors/1?fields=language
{
  "_index" : "coding",
  ...
  "term_vectors" : {
    "language" : {
      ...
      "terms" : {
        "abc" : {
           ...
        },
        "xyz_foo" : {
          ...
        }
      }
    }
  }
}

```

기본 `analyzer`에서는 `_`기호를 구분하지 않았기 때문에 `xyz` 또는 `foo`로는 검색할 수 없었습니다.  
`_` 기호까지 구분하여 `xyz` 또는 `foo` 그리고 `abc`까지 검색할 수 있는 `analyzer`을 어떻게 만들어야 하나요?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 31, 2021, 11:18am UTC](https://discuss.elastic.co/t/analyzer/271969/2 "2021-05-31T11:18:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
