elasticsearch 8.12.0 버전에 javacafe 설치 (자모분석기, 초성주출, 자소분해 한영/영한 오타교정)

2024. 3. 13. 11:20IT

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

  

반응형