This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
ElasticSearch와 Kibana의 연동 및 활용 #40
Comments
1. Kibana 이용한 ElasticSearch 데이터 검색
wisdom 을 field로 주어서도 검색할 수 있다. |
오늘 있었던 문제점
PUT /wisdom_test
{
"settings": {
"analysis": {
"analyzer": {
"nori" : {
"tokenizer" : "nori_tokenizer"
}
}
}
},
"mappings": {
"properties": {
"eg": {
"type": "text",
"analyzer": "nori"
},
"wisdom": {
"type": "text"
}
}
}
} 이제 검색이 잘된다. 앞으로 할 점
|
|
teang1995
added a commit
that referenced
this issue
Oct 3, 2021
TODOs지금까지 explore_{...}로 실험, 공부 해본 메소드들을 우리의 수집 환경에 맞게 클래스 혹은 스크립트를 짜보자! |
ArtemisDicoTiar
added a commit
that referenced
this issue
Oct 5, 2021
bulk APIbulk api 실험용 인덱스: general info |
bulk API 구현 마무리하기bulk api를 사용할 때 반드시 action으로 # python functional programming
sentences = list(
reduce(
lambda i, j: i + j,
list(map(
lambda doc:
list(map(
lambda sent: '{"index": {}}\n' + json.dumps(
{
'source': doc['source'],
'title': doc['title'],
'sent': sent[1],
'sent_id': sent[0]
}
),
enumerate(doc['sents'])
)),
docs
))
)
) 이번에 실험하는 데이터의 볼륨이 커서 bulk를 썼음에도 잘라서 올려야한다. sent_total = len(sentences)
for d in range(11):
r = sent_total//10
body = sentences[d*r: (d+1)*r]
es.bulk(index='machine_read', doc_type='_doc', body='\n'.join(body))
print(f'done: {d}') |
ArtemisDicoTiar
added a commit
that referenced
this issue
Oct 12, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
why?
ElasticSearch를 사용하여 쌓인 데이터들을 시각화해서 보면 좋을텐데..
마침 딸려온 Kibana가 ElasticSearch에서 색인된 데이터를 시각화하고 검색하는데 유용한 툴이라고 한다..
What?
우선 Kibana랑 친해지는 걸 목표로.. 검색과 기본적인 시각화를 시도해본다.
The text was updated successfully, but these errors were encountered: