elasticsearch - Importing csv file into elastic search -


i trying import huge csv file elastic serach.trying use logstash same. sample csv file [note:multiple values ]

shop_name,review_title,review_text,,,, accord ,excellent ,nice collection.,,,,, accord , bad ,not comfortable,,, accord , ,excellent location , staff,,, accord , ,great colletion,,, shopon,good,  staff ,,, harrisons ,spacious,nice colletion 

logstash congiguration

input {     file {         path => ["shopreview.csv"]         start_position => "beginning"     } }  filter {     csv {         columns => [             "shop_name",             "review_title",             "review_text"          ]      } }  output {     stdout { codec => rubydebug }     elasticsearch {         action => "index"         hosts => ["127.0.0.1:9200"]         index => "reviews"         document_type => "shopreview"         document_id => "%{shop_name}"         workers => 1     } } 

here when query review should reviews particular shop.

issue while query localhost:9020/review/shopreview/accord not getting values .only 1 entry. config missing . little new elk stack


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -