일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Mac
- Python
- plugin
- MySQL
- Elasticsearch
- analyzer test
- API
- Java
- flask
- License
- high level client
- Kafka
- springboot
- zip 파일 암호화
- ELASTIC
- license delete
- aggregation
- token filter test
- docker
- aggs
- 파이썬
- Test
- sort
- zip 암호화
- 차트
- query
- TensorFlow
- matplotlib
- licence delete curl
- 900gle
- Today
- Total
목록ElasticStack (115)
개발잡부
# 백그라운드 실행 빌드 옵션 docker compose up -d --build #생성된 컨테이너 중지/삭제 docker compose down docker-compose.yml version: '3.2' services: elasticsearch: container_name: doo_es build: context: elasticsearch/ args: ELK_VERSION: $ELK_VERSION volumes: - type: bind source: ./elasticsearch/config/elasticsearch.yml target: /usr/share/elasticsearch/config/elasticsearch.yml read_only: true - type: volume source: ela..

사용자의 검색의도를 정교하게 반영하는(?) 결과를 제공하는 쿼리.. 라고 하는데.. 확인 들어간다 POST _bulk {"index":{"_index":"coo", "_id":"1"}} {"name":"나이키", "weight" : 1, "boost" : 1, "description" : "나이키 상품"} {"index":{"_index":"coo", "_id":"2"}} {"name":"나이키 에이맥스","weight" : 1, "boost" : 1,"description" : "나이키 운동화"} {"index":{"_index":"coo", "_id":"3"}} {"name":"나이키 에어조던","weight" : 1, "boost" : 1,"description" : "나이키 운동화 농구화"} {"..

7.15.0 이후로 안나온다는건가.. bulid.gradle 디펜던시 추가 def elasticsearchVersion = '7.12.1' // https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: elasticsearchVersion // https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-client compile grou..

개발환경 Mac OS java 1.8 maven (plugin) elastic stack 7.12.1 (es, kibana)- docker compose 애널라이저 구조가 이렇단 말이지.. 애널라이저를 만들고 토크나이저에 edge_ngram 넣고 커스텀 플러그인 kr-danalyzer (korean doo analyzer) aka. KDA 를 설치해서 토큰 필터 적용, 필드에 맵핑시켜본다. Analyzer repository https://github.com/900gle/kr-danalyzer GitHub - 900gle/kr-danalyzer: doo analyzer for korean doo analyzer for korean. Contribute to 900gle/kr-danalyzer develo..
GET doo/_search { "query": { "bool": { "should": [ { "fuzzy": { "name.keyword": { "value": "나이키 조단", "fuzziness": 1 } } }, { "prefix": { "name.keyword": { "value": "나이키 조단" } } } ] } } } GET doo/_search { "query": { "match_phrase_prefix": { "name": "나이키 집업" } } }
GET shop/_search { "from": 0, "size": 10, "timeout": "200ms", "query": { "function_score": { "query": { "bool": { "must": [ { "multi_match": { "query": "루이 비통", "fields": [ "name^0.0", "category", "category1", "category2", "category3", "category4", "category5" ], "type": "best_fields", "operator": "or" } } ] } }, "functions": [ { "script_score": { "script": { "source": "1 + doc['weight'].value +..
match 쿼리 다중 필드 GET /_search { "query": { "multi_match" : { "query": "this is a test", "fields": [ "subject^3", "*_message" ] } } } ^3 : subject 필드 3배 부스팅 *_message : _message 를 포함하는 필드 검색 multi_match 쿼리유형 type 매개변수 best_fields ( 기본값 ) 모든 필드와 일치하지만 _score최상의 필드를 사용하는 문서를 찾습니다 . 를 참조하십시오 best_fields. most_fields 모든 필드와 일치하는 문서를 찾아 _score각 필드에서 결합합니다 . 를 참조하십시오 most_fields. cross_fields 필드를 analyze..

데이터 입력 후 확인 POST _bulk {"index":{"_index":"doo", "_id":"1"}} {"name":"나이키", "weight" : 1, "boost" : 1, "description" : "나이키 상품"} {"index":{"_index":"doo", "_id":"2"}} {"name":"나이키 에이맥스","weight" : 1, "boost" : 1,"description" : "나이키 운동화"} {"index":{"_index":"doo", "_id":"3"}} {"name":"나이키 에어조던","weight" : 1, "boost" : 1,"description" : "나이키 운동화 농구화"} {"index":{"_index":"doo", "_id":"4"}} {"name"..
인덱스 생성 PUT test_doo { "settings": { "analysis": { "analyzer": { "nori_analyzer": { "tokenizer": "nori_tokenizer" }, "jamo_analyzer": { "type": "custom", "tokenizer": "whitespace", "filter": [ "lowercase", "stop", "snowball", "doo-jamo" ] }, "chosung_analyzer": { "type": "custom", "tokenizer": "whitespace", "filter": [ "lowercase", "stop", "snowball", "doo-chosung" ] } } } }, "mappings": { "prope..