elasticsearch 8.12.0 버전에 javacafe 설치 (자모분석기, 초성주출, 자소분해 한영/영한 오타교정)
2024. 3. 13. 11:20ㆍIT
1. javacafe 설치
https://github.com/javacafe-project/elasticsearch-plugin
GitHub - javacafe-project/elasticsearch-plugin: 자바카페에서 개발한 한글 처리용 Elasticsearch 플러그인
자바카페에서 개발한 한글 처리용 Elasticsearch 플러그인. Contribute to javacafe-project/elasticsearch-plugin development by creating an account on GitHub.
github.com
2. maven으로 빌되 되어 있어서 pom.xml 수정
1) elasticsearch, lucene 버전 변경
<properties>
<elasticsearch.version>8.12.0</elasticsearch.version>
<!-- <elasticsearch.version>6.2.2</elasticsearch.version> -->
<lucene.version>9.9.1</lucene.version>
</properties>
2) java 17버전 설치로 버전 변경
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
3. maven clean, install 하면 함수 변수가 다르다고 나옴
4. 소스 수정
- super(indexSettings, name, settings);
+ super(name, settings);
5. 플러그인 설치
C:\dev\elasticsearch\elasticsearch-8.12.0\bin>elasticsearch-plugin install file:///C:\dev\elasticsearch\elasticsearch-8.12.0\javacafe-analyzer-8.12.0.zip
반응형
'IT' 카테고리의 다른 글
m3u8 파일에 광고 정보 STCE-35를 삽입 (0) | 2024.05.03 |
---|---|
elasticsearch 8.12.0 오타교정, 한영변환, 초성, 자동완성 검색 - hanhinsam (0) | 2024.05.02 |
ElasticSearch received plaintext http traffic on an http channel, closing connection 에러 (0) | 2024.01.23 |
윈도우 elasticsearch - nori analyzer 설치 (0) | 2024.01.23 |
React 시작하기 - 환경 설정 (0) | 2023.11.19 |