Questions tagged [pyelasticsearch]

pyelasticsearch is a clean, future-proof, high-scale python API to elasticsearch.

pyelasticsearch is a clean, future-proof, high-scale python API to elasticsearch. It provides features like...

  • Transparent conversion of Python data types to and from JSON
  • Translating HTTP status codes representing failure into exceptions
  • Connection pooling Load balancing of requests across nodes in a cluster Failed-node marking to avoid downed nodes for a period
  • Optional automatic retrying of failed requests

https://pyelasticsearch.readthedocs.io/en/latest/

89 questions
0
votes
3 answers

Launch elasticsearch server using python code

I would like to write a script in python which creates an elasticsearch server at localhost 9200. All of the examples that I find online regard connecting to an existing elasticsearch instance running at localhost 9200. My motivation is that I don't…
matt hoover
  • 326
  • 2
  • 7
  • 23
0
votes
1 answer

Problems with elasticsearch where '*' is the field

So, I should prefix this by saying that I understand * is a special character that should be escaped for elasticsearch queries. Here's the setup and trouble I'm facing. The basic problem boils down to that I'm unable to search fields containing only…
Glem
  • 449
  • 6
  • 16
0
votes
1 answer

Elastic search Not filter inside and filter

I am trying to add a "not" filter inside "and" filter Sample input: { "query":{ "filtered":{ "query":{ "query_string":{ "query":"error", "fields":[ "request" …
0
votes
1 answer

how to send a plain query to elasticsearch with pyes

I have a plain query that I would like to send to Elasticsearch through pyes without using pyes's builtin methods. The query works when it's CURLed. further below is my code, but I can't make it work. It returns this error when I iterate over the…
Jabb
  • 3,414
  • 8
  • 35
  • 58
0
votes
1 answer

ElasticSearch More Weight to Exact Match

I use elastic search for news articles search. If I search for "Vlamadir Putin", it works because he is in news a lot and Vlamidir and Putin are both not very popular. But if I search for "Raja Ram", it does not work. I have a few articles of "Raja…
Pratik Poddar
  • 1,353
  • 3
  • 18
  • 36
0
votes
3 answers

Elastic Search boost query corresponding to first search term

I am using PyElasticsearch (elasticsearch python client library). I am searching strings like Arvind Kejriwal India Today Economic Times and that gives me reasonable results. I was hoping I could increase weight of the first words more in the search…
Pratik Poddar
  • 1,353
  • 3
  • 18
  • 36
0
votes
1 answer

Elasticsearch 1.0 and pyelasticsearch

Does anyone know if pyelasticsearch (currently v0.6.1) works with Elasticsearch v1.0? Has anyone tried using these together (yes, I know Elasticsearch v1.0 was just released) yet? I'm using both in a Django application and while I can't say for…
Josh
  • 23
  • 4
0
votes
1 answer

It is possible to use Elasticsearch remotely?

I've a web app that needs to use ElasticSearch but my host does not permit to use Java apps. It is possible to put the ElasticSearch server on other machine(Remote) so that the webapp makes the queries to a remote server? If yes, ElasticSearch have…
André
  • 24,706
  • 43
  • 121
  • 178
0
votes
1 answer

django, haystack, and pyelasticsearch best versions

Basically, I am getting a unreasonable amount of errors using these libraries: django==1.4.3 pyelasticsearch==0.6 simplejson==3.3.0 django-haystack==2.1.0 The errors I get are: From python2.7/site-packages/haystack/query.py: index_queryset() got…
Aaron Schif
  • 2,421
  • 3
  • 17
  • 29
0
votes
1 answer

How to get all indexed data from elastic search

I have indexed data from MySQL to elasticsearch using pyelasticsearch client. But when when I try to get the indexed data I am getting only few records I have 166 records but I am getting only this : { "took": 23, "timed_out": false, …
Vaibhav Jain
  • 5,287
  • 10
  • 54
  • 114
-1
votes
1 answer

python elasticsearch get field from given doc_id

My input is , , , i want the value of the field I am looking for python-client equivalent of GET /_doc//?_source_includes=
Kaushik J
  • 962
  • 7
  • 17
-1
votes
2 answers

Any efficient way to get unique terms from Elasticsearch index

I aim is to store all unique term along with their md5 hashes in a database. I have a 1 million document index which has ~400000 unique terms. I got this figure from using aggregations in elasticsearch. GET /dt_index/document/_search { …
Animesh Pandey
  • 5,900
  • 13
  • 64
  • 130
-1
votes
1 answer

Elastic Search Index in python

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 …
-1
votes
1 answer

In elasticsearch-py, how different should the search command be if I used custom tokenization during indexing?

I am using elasticsearch-py to index tweets (originally in JSON format). In order to preserve special characters like hashtags, user targets and emoticons, I specified a special mapping while creating the index. This is what it looks like: from…
Satarupa Guha
  • 1,267
  • 13
  • 20
1 2 3 4 5
6