Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- mutations
- kibana
- sns로그인
- 연동
- mixins
- Login
- programmers
- Express.js
- axios
- node.js
- getters
- KAKAO
- IntelliJ
- vuex
- 콘솔한글깨짐
- v-if
- includes
- v-on
- state
- react
- Reduce
- 음양더하기
- Emit
- azure
- Vue.js
- javascipt
- javscript
- 템플릿문법
- JavaScript
- v-for
Archives
- Today
- Total
공부용
ES(ElasticSearch) Select/GET/SEARCH 예제 본문
#SELECT DATABASE
localhost/_cat/indices?v
localhost/_cat/indices?v
URL 처리 예제
-----------------------------
#GET/SELECT/SEARCH DATA
GET localhost/index/type/_search?""?filter_path=...
GET localhost/index/type/_search?""&filter_path=...
- index : database
- type : table
- _search?q="" - > 연관단어? 들어간단어 다 긁어온다
- _search?q="" 사용법
"columnA":"rowA" AND "columnB":"rowB"
- columnA에 있는 rowA와 columnB에 있는 rowB를 공동으로 가지고 있는걸 들고 오겠다
- filter_path 사용법
- json으로 받은 서식에서, 어떤 정보만 받아오겠다
-- select columnA, columnB from table(type);
* 최종
GET localhost/index/type/_search?"columnA:AAA"&filter_path=columnA
sql로 정리하자면
selet columnA from table(type) where columnA like 'AAA';
* comment(최근수정 : 2021/05/05 - 15:40pm)
지극히 개인적인 생각입니다. 공부를 더 해보고 수정해야할 사항이 있으면 수정하겠습니다
*참고사이트
www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html
victorydntmd.tistory.com/312?category=742451
DSL Query 처리예제
--------------------------------
GET tpye/_search?
{
"_source": ["field1", "field2"],
"query": {
"bool": {
"must": [
{
"match": {
"field" : "data"
}
}
]
}
}
원하는 필드만 출력할 수 있다
sql : select field1, field2 from type where field = "data";
'공부용' 카테고리의 다른 글
[ElasticSearch] AND / OR (0) | 2021.05.10 |
---|---|
[ElasticSearch] term, match, match_phrase (0) | 2021.05.10 |
Comments