일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- zip 암호화
- license delete
- 차트
- aggs
- plugin
- 파이썬
- 900gle
- licence delete curl
- query
- token filter test
- matplotlib
- aggregation
- Test
- ELASTIC
- Python
- analyzer test
- springboot
- TensorFlow
- Mac
- flask
- API
- docker
- Java
- Kafka
- Elasticsearch
- License
- sort
- zip 파일 암호화
- high level client
- MySQL
- Today
- Total
목록분류 전체보기 (475)
개발잡부
An array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing. Your goal is to find that missing element. Write a function: class Solution { public int solution(int[] A); } that, given an array A, returns the value of the missing element. For example, given array A such that: A[0] = 2 A[1] = 3 A[2] =..
A non-empty array A consisting of N integers is given. Array A represents numbers on a tape. Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ..., A[N − 1]. The difference between the two parts is the value of: |(A[0] + A[1] + ... + A[P − 1]) − (A[P] + A[P + 1] + ... + A[N − 1])| In other words, it is the absolute differ..
A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D. Count the minimal number of jumps that the small frog must perform to reach its target. Write a function: class Solution { public int solution(int X, int Y, int D); } that, given three inte..
A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired. For example, in array A such that: A[0] = 9 A[1] = 3 A[2] = 9 A[3] = 3 A[4] = 9 A[5] = 7 A[6] = 9 the elements at indexes 0 and 2 have value 9, the elements at i..
An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, 7] (elements are shifted right by one index and 6 is moved to the first place). The goal is to rotate array A K times; that is, each element ..
A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary representation 1000010001 and contains two binary gaps: one of length 4 and one of length 3. The number 20 has binary r..
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..