일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- license delete
- aggs
- Mac
- docker
- flask
- 파이썬
- Elasticsearch
- token filter test
- 차트
- Java
- licence delete curl
- high level client
- aggregation
- Test
- Kafka
- matplotlib
- plugin
- MySQL
- License
- TensorFlow
- query
- zip 파일 암호화
- zip 암호화
- Python
- analyzer test
- sort
- springboot
- 900gle
- API
- ELASTIC
- Today
- Total
목록전체 글 (477)
개발잡부

kafka 를 3.5로 올려보잣 https://ldh-6019.tistory.com/228 [kafka] MacOs Kafka install / test kafka를 설치 해보자 https://www.apache.org/dyn/closer.cgi?path=/kafka/2.8.0/kafka_2.13-2.8.0.tgz Apache Download Mirrors Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache and the Apache feather l ldh-6019.tistory.com kafka를 설치 해보자 https://downloads.apache.org/kafk..
집계를 해야 하는데 쿼리 한방으로 다수의 집계 결과를 얻어야 하는데 그게 또 조건이 다 다르네.. filter aggregation 을 사용해 보자 Filters 에 term 조건을 복수로 넣으니 or 연산이 반영되어서 원하는 결과가 나오지 않았다. fliter 에 bool 쿼리도 안드어가지고 그래서 잴 다루기쉬운 query_string 으로 filter 생성 sample 쿼리를 만들고 실행했더니 얼추 원하는 결과가 나옴 GET hyper-item/_search { "_source": [ "docDispYn", "rsvDocDispYn" ], "size": 0, "query": { "bool": { "filter": [ { "term": { "itemNo": "146526241" } } ] } }, "a..

목표 QueryString 쿼리를 OR 검색조건으로 추가해서 재현율을 개선 작업방향 AS-IS Query > bool > must > multi_match 에서 Query > bool >must > bool > should > bool > must > multi_match OR Query > bool > must > bool > should > bool > must > query_string 로 변경 쿼리 구조 추가 개선 작업 재현율은 올라갔으나 정밀도를 올려야 함 추가 작업 tokenizer 테스트 : 검색결과의 노출기준을 term 의 매칭 수로 판단 정밀도를 올리기 위해 토근 분해의 디테일을 올린다. analyzer 테스트 : 1번테스트에서 유의미한 결과를 보이는 tokenizer 를 포함한 anal..

5amsung 에서 사용할 승부 결과를 저장하는 api 를 만들어 보잣 spring kafka 의존성 추가 /* kafka */ implementation 'org.springframework.kafka:spring-kafka' 간단하게 이름만 브로커에 저장하는 api 5amsung api 로 따로 만들려고 했는데 swagger 에러가 계속 나서 900gle에 기생수 마냥 심어 놓음 package com.bbongdoo.doo.service; import lombok.RequiredArgsConstructor; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.stereotype.Service; @Service ..

Elasticsearch aggregation 을 테스트 해보려고 한다. 그중에서도 Pipeline Aggregations 우선 내 신상 ES 로 이동 /Users/doo/docker/es8.8.1 실행해보자 (base) ➜ es8.8.1 docker compose up -d --build 우선 키바나를 접속해보자 http://localhost:5601/app/home#/ 오케이 인덱스는 언제더라.. 어젠가 그젠가 만들어 놓은 인덱스 820만건의 location 정보 mapping 구조 더보기 { "location-index": { "mappings": { "dynamic": "true", "properties": { "addr1": { "type": "keyword" }, "city": { "type"..
신발 사러 왔는데 가방은 쫌 그래요.. 말도 꺼내지마요.. 상품중에 가방을 지워보자 package com.bbongdoo.doo.Streams; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; @Getter @Setter @AllArgsConstructor public class Goods { private String name; private String type; } Goods 객체로 일루어진 List 를 만들어 보자 List goods = new ArrayList(); goods.add(new Goods("나이키", "신발")); goods.add(new Goods("아디다스", "신발")); goods.ad..

itemNm 에서 실패검색어를 기반으로 조회 했을때 유의미한 데이터를 추출한다. 띄어쓰기 영향 X 공백기준 앞뒤 순서 영향 X 위의 조건을 고려하여 적합한 쿼리 구현 후보 1. wildcard *{keyword}* 의 경우 단일 단어에서는 유의미한 결과가 나오지만 공백을 포함한 단어에서는 재현율이 좋지 않음 후보 2. query_string 작업의 의도에 가장 부합하는 결과를 도출할 수 있음. query result 후보 3. match 동일한 키워드에서 무의미한 데이터 같이 추출 됨
public static String solution(String s) { String answer = ""; String[] strings = s.split(" "); int min = Integer.parseInt(strings[0]); int max = Integer.parseInt(strings[0]); for (int i = 0; i 0) { int nu = Integer.parseInt(strings[i]); if (nu = max) { max = nu; } } } answer = min + " " + max; return answer; }

파일 위치는 /private/etc cd /private/etc sudo vi hosts 비번 입력할때 한글로 되어 있으면 오류남 비번입력후 파일 확인 -끗-

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 f..