일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- zip 파일 암호화
- TensorFlow
- docker
- flask
- Kafka
- plugin
- token filter test
- zip 암호화
- API
- MySQL
- high level client
- matplotlib
- licence delete curl
- Mac
- Test
- aggs
- 파이썬
- Elasticsearch
- 900gle
- 차트
- analyzer test
- springboot
- Python
- sort
- query
- license delete
- Java
- aggregation
- License
- ELASTIC
- Today
- Total
개발잡부
[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 디렉토리를 만듭니다.

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
GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine
Free and Open, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.
github.com
'ElasticStack8 > Elasticsearch' 카테고리의 다른 글
[es8] HighLevelClient, LowLevelClient (0) | 2023.08.06 |
---|---|
[es8] aggregation - Pipeline Aggregations (0) | 2023.06.14 |
[es8] Elasticsearch Plugin 8.6.2 (0) | 2023.05.20 |
[es8] similarity modules (0) | 2023.05.16 |
[es] _explain (0) | 2023.05.09 |