# 검색 시 정확한 일치 항목만 강제하는 방법?

**URL:** <https://meta.discourse.org/t/how-to-enforce-exact-matches-when-searching/195198>\
**Category:** Support\
**Created:** [6월 28, 2021, 5:17오전 UTC](https://meta.discourse.org/t/how-to-enforce-exact-matches-when-searching/195198 "2021-06-28T05:17:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Post date:** [6월 28, 2021, 5:17오전 UTC](https://meta.discourse.org/t/how-to-enforce-exact-matches-when-searching/195198/1 "2021-06-28T05:17:09Z")

</div>

일부 검색에서는 결과가 전혀 나오지 않는다는 점을 확인했습니다:

 ![CleanShot 2021-06-28 at 07.00.30@2x](https://global.discourse-cdn.com/meta/original/3X/9/3/9364bf49daa4fc3f4c46bc61dcf1270cc2bb6fcb.png)

하지만 검색 범위를 특정 주제 등으로 좁히면 원하는 결과를 찾을 수 있습니다:

 ![CleanShot 2021-06-28 at 07.01.06@2x](https://global.discourse-cdn.com/meta/original/3X/f/a/faa76ff164672f7af9b4aedc015817d775756ca1.png)

처음에는 발음 기호가 있는 문자 때문인 것 같았지만, 여러 번 테스트해 본 결과 발음 기호가 없는 문자에서도 동일한 문제가 발생합니다.

두 번째로 생각한 것은 스탑워드(stop words) 때문일 수 있다는 것이었습니다. 그래서 app.yml을 수정하여 [스페인어 스탑워드 사전](https://meta.discourse.org/t/including-stop-words-when-searching/127134/4?u=nacho_caballero)을 잘랐습니다:

```plaintext
ls -l /usr/share/postgresql/13/tsearch_data/spanish.stop
-rw-r--r-- 1 root root 0 May 12 06:37 /usr/share/postgresql/13/tsearch_data/spanish.stop
                       ☝️

```

완전한 일치(exact matches)가 항상 검색되도록 조정할 수 있는 설정이 있을까요?

---

_[View the full topic](https://meta.discourse.org/t/how-to-enforce-exact-matches-when-searching/195198)._
