본문 바로가기

전체 글

(159)
2x2x2 큐브
결국 데브옵스? http://www.itworld.co.kr/news/118329
centos 에서 jstat으로 elasticsearch 모니터링하기 0 일단 설치부터. 설치하려면 java version 확인. 버전은 또 어뜨케 확인햐 ~ yum install java-1.8.0-openjdk-devel 이렇게 설치할수도있고. 근데 나는 java -version 으로 확인하니 설치되어있기 때문에. 그것으로 하기로. 혹시 몰라 sudo alternatives --config java 로 이미 설치된 다른 버전들이 더 있나 확인하였음. 1 이제 centos 에 JAVA_HOME을 set 해줘야지 작업중 참고 https://dumdildor.tistory.com/10 https://unix.stackexchange.com/questions/282313/how-to-verify-if-java-is-installed-on-rhel https://computin..
elasticsearch ngram existing index 에설정 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#update-settings-analysis Update index settings API | Elasticsearch Reference [7.5] | Elastic For example, the update settings API can be used to dynamically change the index from being more performant for bulk indexing, and then move it to more real time indexing state. Before the bulk indexing is starte..
파이썬으로 멀티쓰레드 어케하냐 마-! https://stackoverflow.com/questions/2846653/how-can-i-use-threading-in-python How can I use threading in Python? I am trying to understand threading in Python. I've looked at the documentation and examples, but quite frankly, many examples are overly sophisticated and I'm having trouble understanding them. H... stackoverflow.com 제대로 된 질문에는 스택오버플로우 신께서 응답하심
elasticsearch6.7 index 만들기 with mapping + reindex + alias https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#mappings Create index API | Elasticsearch Reference [7.5] | Elastic Before 7.0.0, the mappings definition used to include a type name. Although specifying types in requests is now deprecated, a type can still be provided if the request parameter include_type_name is set. For more details, please see Removal..
python find element in dictionary list using key value https://stackoverflow.com/a/8653568/10194999 Python list of dictionaries search Assume I have this: [ {"name": "Tom", "age": 10}, {"name": "Mark", "age": 5}, {"name": "Pam", "age": 7} ] and by searching "Pam" as name, I want to retrieve the related dictionary: {name: "Pam", ... stackoverflow.com dicts = [ { "name": "Tom", "age": 10 }, { "name": "Mark", "age": 5 }, { "name": "Pam", "age": 7 }, { ..
elasticsearch geo-shape 쿼리 조회 "boundaries":{ "type": "geo_shape", "ignore_malformed": true, "precision": "1.0m", "strategy": "recursive", "distance_error_pct": 0.009 }, bounboundaries 는 geo_shape 타입 필드이구, 이렇게 해줘야 document들이 정상적으로 조회된다. 첨에 이 필드를 text로 만들었다가, documents들을 json으로 교체하려고하니까 변경이 되지 않았다. 해결방법 ) 1 reindex하여 PUT https://엘라스틱서치호스트/생성하고자하는_호스트명 2 먼저 매핑타입을 설정해준뒤 PUT https://엘라스틱서치호스트/인덱스이름/_mapping/doc Content-Type: appl..