[es8] elasticsearch stable-esplugin
900gle 에서 사용할 tokenizer 를 만들고 싶은데
https://www.elastic.co/guide/en/elasticsearch/plugins/current/example-text-analysis-plugin.html
Example text analysis plugin | Elasticsearch Plugins and Integrations [8.7] | Elastic
Example text analysis pluginedit This example shows how to create a simple "Hello world" text analysis plugin using the stable plugin API. The plugin provides a custom Lucene token filter that strips all tokens except for "hello" and "world". Elastic provi
www.elastic.co
자바 15로 했는데 이런 에러가..
자바를 17 까지 올려야 에러가 안나네..
코딩 후 RUN
/dooTokenizer/build/distributions
docker 8.7의 elasticsearch/plugin 디렉토리로 복사
Dockerfile
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu
COPY plugin/my-plugin-1.0-SNAPSHOT.zip plugin/my-plugin-1.0-SNAPSHOT.zip
RUN elasticsearch-plugin install file:///usr/share/elasticsearch/plugin/my-plugin-1.0-SNAPSHOT.zip
새로 빌드 후 백드라운드 실행
#종료/삭제
docker compose down
#빌드 후 백드라운드 실행
docker compose up -d --build
시작
키바나 접속
http://localhost:5601/
로 변경해서 실행
토크나이저 이름 변경 테스트
YAML REST test
src 디렉토리에 yamlRestTest 디렉토리를 만듭니다.
src 디렉토리에 yamlRestTest 디렉토리를 만듭니다.
Java 디렉터리 아래에 소스용 resources 폴더와 yamlRestTest폴더를만듭니다.
src/yamlRestTest/java/org/example/ 에서 ESClientYamlSuiteTestCase DooPluginClientYamlTestSuiteIT.java. 를 만듭니다.
github 에 올려 놓기
https://github.com/900gle/dooTokenizer.git
900gle/dooTokenizer
Contribute to 900gle/dooTokenizer development by creating an account on GitHub.
github.com
git init
git remote add origin https://github.com/900gle/dooTokenizer.git
git status
git add .
git commit -m 'init project'
git push -u origin master
아래에 셈플이 있다.
이걸로 다시 만들어야지
https://github.com/elastic/elasticsearch/tree/main/plugins/examples/stable-analysis/src