Skip to content

This repository provides Elasticsearch+Kibana environment which manages dialog data.

License

Notifications You must be signed in to change notification settings

noriyukipy/dialog_search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialog Search

This repository provides Elasticsearch+Kibana environment which manages dialog data.

Start System

$ docker-compose -f docker-compose.yml build
$ docker-compose -f docker-compose.yml up

Indexing

If you want to create mapping before indexing your data, you can use "create_index.sh" This scripts create a new mapping. The turns field is analyzed by the kuromoji analyzer.

$ bash create_index.sh localhost:9200 dialog
{"acknowledged":true,"shards_acknowledged":true,"index":"dialog"}

indexing.py indexes any json data to Elasticsearch. Prepare text file your_file.json which contains json data in each line.

Then input the data into indexing.py.

$ cat your_file.json | python indexing.py --host=localhost --port=9200 --index=dialog --batch_size=1000
1000 items inserted
1000 items inserted
1000 items inserted
500 items inserted

Other scripts

remove_index.sh removes the index you specified.

$ bash remove_index.sh localhost:9200 dialog
{"acknowledged":true}

About

This repository provides Elasticsearch+Kibana environment which manages dialog data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published