# 검색 엔진은 어떻게 작동하는가

> Clean Markdown view of GeekNews topic #9034. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9034](https://news.hada.io/topic?id=9034)
- GeekNews Markdown: [https://news.hada.io/topic/9034.md](https://news.hada.io/topic/9034.md)
- Type: news
- Author: [xoxoxo](https://news.hada.io/@xoxoxo)
- Published: 2023-04-25T11:31:09+09:00
- Updated: 2023-04-25T11:31:09+09:00
- Original source: [xo.dev](https://xo.dev/articles/how-search-engine-works)
- Points: 40
- Comments: 3

## Topic Body

- 나이브한 텍스트 검색 로직 구현  
- 데이터베이스의 WHERE .. LIKE, REGEXP 문을 사용하는 텍스트 검색  
- 데이터베이스의 FULLTEXT 인덱스를 사용하여 검색을 구현하는 방법  
- 역 인덱스 직접 구현하기  
- TF-IDF와 BM25를 직접 구현하여 문서 스코어링

## Comments



### Comment 15885

- Author: readiz
- Created: 2023-05-02T10:23:48+09:00
- Points: 1

좋은 글 공유 감사합니다.

### Comment 15807

- Author: gwanryo
- Created: 2023-04-25T12:48:49+09:00
- Points: 1

감사합니다!

### Comment 15869

- Author: roxie
- Created: 2023-04-29T23:16:39+09:00
- Points: 1
- Parent comment: 15807
- Depth: 1

저자이신가요? 예전에 fuzzy search 글을 읽었던 기억이 나네요. 좋은 글 매번 감사드립니다!
