일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- API
- MySQL
- Test
- token filter test
- query
- springboot
- aggs
- Kafka
- Elasticsearch
- 파이썬
- flask
- License
- licence delete curl
- 900gle
- plugin
- Mac
- docker
- high level client
- zip 암호화
- Python
- analyzer test
- Java
- ELASTIC
- license delete
- 차트
- aggregation
- TensorFlow
- matplotlib
- zip 파일 암호화
- sort
- Today
- Total
목록ElasticStack/Elasticsearch (81)
개발잡부
ES가 항상 건강하길 바라는 마음으로 클러스터 레벨의 heath check curl - XGET 'localhost:9200/_cluster/health?pretty' GET _cluster/health 인덱스 레벨의 heath check GET _cluster/health?level=indices 인덱스 레벨의 heath check GET _cluster/health?level=shards cluster_name 클러스터 명 status timed_out number_of_nodes number_of_data_nodes active_primary_shards active_shards relocating_shards initializing_shards unassigned_shards delayed_una..
하나의 필드에 여러개의 텀을 검색할때 사용 GET ds-item/_search { "_source": ["itemNo","itemStatus","unitDispYn", "docDispYn", "itemDispYn", "docDispInfo"], "query": { "terms": { "itemNo": [ "10000300057455", "10000300083762", "10000300055602" ] } } } profile 을 보니
https://ldh-6019.tistory.com/352 [es] sort - payload sort 3 payload sort 2 는 어떻게 됐는지.. 모르겠네.. 왜 작성하다 말았지.. https://ldh-6019.tistory.com/270 [es] payload-score 7.15.1 gradle payload score plugin 을 만들어 보자 https://www.elastic.co/guide/e.. ldh-6019.tistory.com Payload sort 를 만드는 도중.. 유닛테스트의 필요성을 느껴 ESSingleNodeTestCase 를 활용하여 TEST 케이스를 만들어 보았드아 개발 환경 macOS intelliJ IDEA springboot gradle build.gradl..
payload sort 2 는 어떻게 됐는지.. 모르겠네.. 왜 작성하다 말았지.. https://ldh-6019.tistory.com/270 [es] payload-score 7.15.1 gradle payload score plugin 을 만들어 보자 https://www.elastic.co/guide/en/elasticsearch/reference/7.15/analysis-delimited-payload-tokenfilter.html#analysis-delimited-payload-tokenfilter java 11 elasticsea.. ldh-6019.tistory.com 일단 여기 플러그인 만들어 놓았고 아래는 회사에서 쓰는거로 테스트 집에가서 섞어봐야지 encoding (Optional, s..
import json import time from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk from ssl import create_default_context import matplotlib.pyplot as plt from matplotlib.collections import EventCollection import numpy as np plt.rcParams['font.family'] = 'AppleGothic' def get_query(keyword): script_query = { "bool": { "filter": [ { "range": { "saleStartDt": { "to": "now/m", "i..
POST hyper-item-aggs-nested/_update_by_query?wait_for_completion=false { "script": { "source": "ctx._source.filterInfo.benefit = ['BASIC','FREE']" }, "query": { "term": { "itemStoreInfo.dcType": { "value": "DEFAULT_PRICE" } } } } POST hyper-item-aggs-array/_update_by_query?wait_for_completion=false { "script": { "source": "ctx._source.filterInfo.benefit = ['BASIC','FREE']" }, "query": { "term": ..
import json import time from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk from ssl import create_default_context import matplotlib.pyplot as plt from matplotlib.collections import EventCollection import numpy as np plt.rcParams['font.family'] = 'AppleGothic' ##### SEARCHING ##### def handle_query(): embedding_start = time.time() embedding_time = time.time() - embeddi..
float, array, string, nested 데이터의 집계를 해보자 아래와 같은 맵핑 구조로 인덱스 생성 index 생성 PUT aggs_doo { "settings": { "index": { "number_of_shards": 3, "number_of_replicas": 0 } }, "mappings": { "properties": { "benefit": { "type": "keyword" }, "grade": { "type": "float" }, "mallType": { "type": "keyword" }, "resellers": { "type": "nested", "properties": { "reseller": { "type": "keyword" }, "price": { "type": "d..
검색쿼리 GET /products_nested/_search?size=0 { "query": { "match": { "name": "led tv" } }, "aggs": { "resellers": { "nested": { "path": "resellers" }, "aggs": { "filter_reseller": { "filter": { "bool": { "filter": [ { "term": { "resellers.reseller": "companyB" } } ] } }, "aggs": { "min_price": { "min": { "field": "resellers.price" } }, "resller": { "terms": { "field": "resellers.reseller", "size": 1..
작업 상품데이터 필터조건 중 float, array, string 데이터의 집계를 하여 필터의 활성화 비활성화를 확인한다. index mapping 구조 PUT aggs_doo { "settings": { "index": { "number_of_shards": 3, "number_of_replicas": 0 } }, "mappings": { "properties": { "benefit": { "type": "keyword" }, "grade": { "type": "float" }, "mallType": { "type": "keyword" } } } } 데이터 색인 PUT aggs_doo/_doc/1 { "benefit":["AAA", "BBB"], "grade": 2.2, "mallType": "DS" ..