Coder Social home page Coder Social logo

elastic-search's People

Contributors

wonyong-jang avatar

Watchers

 avatar

elastic-search's Issues

Setting

Setting

$ brew install elasticsearch

$ brew install kibana

$ elasticsearch // start
=> localhost:9200 // if you can access it, you complete download.

$ kibana // start
=> localhost:5601
( /usr/local/etc/kibana/kibana.yml ) // 설정 경로

$ brew install logstash

( / usr / local / Cellar / logstash / {version} / bin / logstash ) // 설치 경로!
/usr/local/Cellar/logstash/{version}/libexec/bin // syslog.conf

bin/logstash-plugin update 꼭해주기!!

$ brew tap elastic/tap
$ brew install elastic/tap/filebeat-full

sincedb 경로

sincedb_path=>"/usr/local/Cellar/logstash/7.4.2/libexec/data/plugins/inputs/file/.sincedb_49f060dbb414f0ccfa3b1c28b4533a3b"

CRUD

$ curl -XGET http://localhost:9200/clasess ==> index 확인 ( 주소 / index name(clasess) )
$ curl -XPUT http://localhost:9200/clasess ==> index 생성
$ curl -XDELETE http://localhost:9200/clasess ==> index 삭제

$ curl -XPOST http://localhost:9200/classes/class/1/ - d ' // ( 주소 / index 명/ 타입명/ id)
{"title": "algorithm", "professor" : "john"}' -H 'Content-Type: application/json'

==> document 생성

  • update ( document 업데이트 )

bulk ( 여러개의 document 를 한번의 엘라스틱 서치에 삽입 )

mapping ( 관계형 데이터 베이스에서 스키마와 동일 )

메트릭 어그리게이션 ( 엘라스틱안에 있는 도큐먼트 안에서 조합을 통해서 결과 도출 / 산술연산할때 )

  • 최대, 최소, 평균...

버켓 어그리게이션 ( 엘라스틱안에 있는 도큐먼트 안에서 조합을 통해서 결과 도출 / Group By)

  • Group 지어서 결과값 도출

Practice

  • Click the dev Tools menu of kibana

basic concepts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.