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
- hbase 저장공간 설정
- 논블록킹 성능
- formik
- fake jwt
- Ingress Controller Fake
- UnsupportedOperationException
- 월급루팡 일지
- 개발 어렵당.ㅠ
- LPOS
- nGinder
- jsonMarshaller
- RedirectService
- reids
- 핀포인트
- 애자일 싫타
- OIDC
- intellij
- ㅉ때
- Loki 로그
- save/update
- 노드간 통신
- jar 배포
- R2DBC Paging
- 오블완
- 티스토리챌린지
- 7879
- Armeria
- pinpoint 2.5.3
- 플루터
- pinpoint
Archives
- Today
- Total
대머리개발자
[solr9] - 동의어 검색 본문
728x90
결과부터!! 정말 간단하다. 정말 감사합니다...!!
core 생성시 복사한 [conf]폴더 하위에 synonyms.txt 파일있다.
synonyms.txt 열어서 콤마(,)로 입력하면 동의어 검색이 된다.
마지막으로 synonymGraph 필터를 넣어준다.
<fieldType name="text_ko" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer outputUnknownUnigrams="false" discardPunctuation="true" decompoundMode="mixed" userDictionary="lang/userdict_ko.txt" name="korean"/>
<filter name="koreanPartOfSpeechStop"/>
<filter name="koreanReadingForm"/>
<filter name="lowercase"/>
<filter name="synonymGraph" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter name="stop" ignoreCase="true" words="lang/stopwords_ko.txt"/>
</analyzer>
</fieldType>
당연히 다시 적용을 해야 한다. 서버를 리부팅할 필요 없이 관리자 기능으로 제공해 준다. Nice!
728x90
'개발이야기 > 오픈소스 설치' 카테고리의 다른 글
[solr9] - 마지막 prod 구축 (0) | 2024.03.05 |
---|---|
[solr9] - 미비된 사항들 정비 (1) | 2024.03.05 |
[solr9] - core 생성 (0) | 2024.02.29 |
[solr9] 색인.. (0) | 2024.02.27 |
[solr9] dev 설치 (1) | 2024.02.23 |