FAQ Database Discussion Community


Elastic Search Index in python

python,elasticsearch,kibana,kibana-4,pyelasticsearch
I want to push my data from a dictionary to Elasticsearch. How can I create an index for the same? I tried using the Curl commands as well on Linux server curl -XPUT 'http://localhost:9200/osint/' -d ' index: number_of_shards: 5 number_of_replicas: 2 ' but this also didnt help out I wrote...

Elasticsearch Aggregation by Day of Week and Hour of Day

elasticsearch,nosql,elasticsearch-plugin,spring-data-elasticsearch,pyelasticsearch
I have documents of type: [{"msg":"hello", date: "some-date"},{"msg":"hi!", date: "some-date"}, ... I want to have the count of documents by day of week. For example x messages were sent on Monday and y were sent on Tuesday and so on. I have used date_histogram with aggregation but it returns me...