pyelasticsearch Questions

5

Solved

I'm using the ElasticSearch (2.4) and the official Python client to perform simple queries. My code: from elasticsearch import Elasticsearch es_client = Elasticsearch("localhost:9200") index = "i...
Myiasis asked 2/11, 2016 at 16:25

5

When scrolling in elasticsearch it is important to provide at each scroll the latest scroll_id: The initial search request and each subsequent scroll request returns a new scroll_id — only the ...
Halfassed asked 28/7, 2014 at 14:15

1

Solved

I have to find the matching documents which have the string, for example: "sky", within some "key" range. When I write separate match and range query, I get the output from the ES but it throws an ...
Melo asked 29/3, 2018 at 12:59

2

Solved

Size of data to get: 20,000 approx Issue: searching Elastic Search indexed data using below command in python but not getting any results back. from pyelasticsearch import ElasticSearch es_repo ...
Calix asked 16/3, 2018 at 12:18

4

Solved

I can set mappings of index being created in curl command like this: { "mappings":{ "logs_june":{ "_timestamp":{ "enabled":"true" }, "properties":{ "logdate":{ "type":"date", "forma...
Paramatta asked 26/7, 2015 at 10:18

1

Whats the correct way to disconnect an elasticsearch-py (python) client rsp. close an existing connection pool? I cannot find any information in the docs.
Antoineantoinetta asked 12/4, 2015 at 11:10

2

I'm confused about py-elasticsearch bulk @Diolor solution works https://mcmap.net/q/258051/-how-to-use-bulk-api-to-store-the-keywords-in-es-by-using-python, but I would like to use plain es.bulk()...

1

Solved

Updated: Turns out, this is not a function of cron. I get the same behavior when running the script from the command line, if it in fact has a record to process and communicates with ElasticSearch....
Crinkle asked 24/11, 2015 at 20:29

3

Solved

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 Mon...

1

Solved

What I need is very simple, but I am unable to find how to do it in Elasticsearch, possibly because of the complexity of what is required to be done. Input (two sample JSON documents) { "car" : 1...

1

Solved

I'm trying to use the python client for elasticsearch. Here is a minimal example: import logging logging.basicConfig() from elasticsearch import Elasticsearch as ES print "Setup connection..." e...
Leal asked 28/7, 2014 at 7:51

1

I am trying to add a "not" filter inside "and" filter Sample input: { "query":{ "filtered":{ "query":{ "query_string":{ "query":"error", "fields":[ "request" ] } }, "filter":{ and:[ ...
Provinciality asked 16/6, 2014 at 7:38
1

© 2022 - 2024 — McMap. All rights reserved.