Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- H2 DB
- Bean Factory란
- H2
- Servlet Container란
- ElasticSearch NGram
- Java
- ElasticSearch 동의어 사전
- elasticSearch
- 안드로이드
- Servlet Life Cycle
- ContextLoaderListener란
- Servlet 멀티 스레딩
- Dispathcher Servlet이란
- spring 장점
- Spring Handler
- 동의어 파일
- ElasticSearch Shingle
- 안드로이드스튜디오
- 자바
- 토큰필터
- ApplicationContext란
- layout
- ElasticSearch EdgeNGram
- ElasticSearch 토큰필터
- 계산기
- Spring Servlet이란
- Servlet과 Thread
- 인텔리제이
- ElasticSearch 동의어 파일
- Spring Container란
Archives
- Today
- Total
결국 무엇이든 해내는 사람
ElasticSearch - lowercase, uppercase 토큰 필터 [ 예제, 설명 ] 본문
두서없는 공부 노트/ElasticSearch
ElasticSearch - lowercase, uppercase 토큰 필터 [ 예제, 설명 ]
kkm8257 2021. 12. 14. 16:28반응형
-- 영어나 유럽어 기반의 텍스트들은 대소문자가 있다
-- 검색할 때에는 대소문자에 상관없이 가능하도록 처리 해 주어야 한다
-- 그래서 lowercase 토큰 필터는 거의 모든 텍스트 검색 사례에서 사용되는 토큰 필터이다.
GET _analyze
{
"filter": [ "lowercase" ],
"text": [ "Harry Potter and the Philosopher's Stone" ]
}
-- 소문자로 변경
{
"tokens" : [
{
"token" : "harry potter and the philosopher's stone",
"start_offset" : 0,
"end_offset" : 40,
"type" : "word",
"position" : 0
}
]
}
GET _analyze
{
"filter": [ "uppercase" ],
"text": [ "Harry Potter and the Philosopher's Stone" ]
}
-- 대문자로 변경
{
"tokens" : [
{
"token" : "HARRY POTTER AND THE PHILOSOPHER'S STONE",
"start_offset" : 0,
"end_offset" : 40,
"type" : "word",
"position" : 0
}
]
}
반응형
'두서없는 공부 노트 > ElasticSearch' 카테고리의 다른 글
ElasticSearch - Synonym 토큰필터, 동의어 사전 파일 [ 예제, 설명 ] (0) | 2021.12.14 |
---|---|
ElasticSearch - Stop 토큰필터 [ 예제, 설명 ] (0) | 2021.12.14 |
ElasticSearch - Path Hierarchy 토크나이저 [ 예제, 설명 ] (0) | 2021.12.14 |
ElasticSearch - uax_url_email 토크나이저 [ 예제, 설명 ] (0) | 2021.12.14 |
ElasticSearch - standard, letter, whitespace 토크나이저 [ 예제, 설명 ] (0) | 2021.12.14 |
Comments