Questions tagged [pyes]

pyes is a connector to use elasticsearch from python.

pyes is a connector to use elasticsearch from python that features Thrift/HTTP protocols, bulk insert/delete, Index management and facet support.

72 questions
1
vote
1 answer

Connecting to ES using python script

I am trying to connect and retrieve data from a ES engine. I am using the following script: from elasticsearch import Elasticsearch as ES print "Setup…
cartoom02
  • 89
  • 3
  • 11
1
vote
1 answer

pyes 'from' keyword can't be set

Since from is a special python keyword I am not able to pass it pyes.es.search function. It give syntax error. pyes.es.search(maf, "twitter", "tweet", sort="timestamp", size=2, from=3) . I passed keyword arguments containing from also as below but…
mustafa.yavuz
  • 1,274
  • 2
  • 21
  • 40
1
vote
1 answer

Python PyES and index to insert

I am new to PyES, the documentation is somewhat hard to read. I want to index data into ES and I see this: conn.index({"name":"Joe Tester", "parsedtext":"Joe Testere nice guy", "uuid":"11111", "position":1}, "test-index", "test-type", 1) I get the…
Tampa
  • 75,446
  • 119
  • 278
  • 425
1
vote
1 answer

ElasticSearch GeoDistance Query

I am using geodistance query in python like this { "query": { "filtered": { "query": { "match_all": {} }, "filter": { "geo_distance": { "distance": "20miles", "location": { …
Waseem
  • 1,392
  • 5
  • 21
  • 30
1
vote
0 answers

Pyes Elastic Search No Results Return

I am following the get-started tutorial of pyes, the code can finish, but there is no search results returned to my screen. #!/usr/bin/python from pyes import * def main(): print 'hello world' conn = ES('127.0.0.1:9200') # delete the…
B.Mr.W.
  • 18,910
  • 35
  • 114
  • 178
1
vote
2 answers

ElasticSearch with filter via elasticutils

I'm currently trying to use a filter in an existing ElasticSearch instance via the library elasticutils. I'm getting nowhere, unfortunately. I'm not sure if the problem is because I did something basic wrong or if there's a problem in the library…
Alfe
  • 56,346
  • 20
  • 107
  • 159
1
vote
1 answer

Elastic Search [PUT] error

I'm having some trouble getting elastic search integrated with an existing application, but it should be a fairly straightforward issue. I'm able to create and destroy indices but for some reason I'm having trouble getting data into elastic search…
Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
1
vote
1 answer

Elastic Search No server available, list index out of range

I'm trying to get a simple example working with elastic search using pyes, but I'm having trouble getting the starting examples working. I'm following the documentation found here: http://pyes.readthedocs.org/en/latest/manual/usage.html and just…
Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
1
vote
2 answers

How to use ResultSet in PyES

I'm using PyES to use ElasticSearch in Python. Typically, I build my queries in the following format: # Create connection to server. conn = ES('127.0.0.1:9200') # Create a filter to select documents with 'stuff' in the title. myFilter =…
JCJS
  • 3,031
  • 3
  • 19
  • 25
1
vote
2 answers

Elasticsearch search for plurals

I can't seem to figure out how to get elasticsearch (accessed via pyes) to search plural/singular terms. For instance, when I enter Monkies, I'd like to get results back that have Belt. I've looked at Elasticsearch not returning singular/plural…
Al W
  • 7,539
  • 1
  • 19
  • 40
1
vote
1 answer

Storing only selected fields and not storing _all in pyes/elasticsearch

I am trying to use pyes with elasticsearch as full text search engine, I store only UUIDs and indexes of string fields, actual data is stored in MonogDB and retrieved using UUIDs. Unfortunately, I am unable to create a mapping that wouldn't store…
Riz
  • 817
  • 1
  • 8
  • 21
1
vote
0 answers

basic ES query using elasticutils

need help in formulating a basic elasticutils search query I am trying to test elasticutils mainly becz I was not able to get optimum performance for #searches results / second. ( more details : here ) So far here is what I have…
Abhi
  • 6,075
  • 10
  • 41
  • 55
1
vote
2 answers

Implementing ElasticSearch into Pyramid

After doing some research on search engines, I decided to go with ElasticSearch, and was wondering what the quickest and most efficient way of implementing it with pyramid is. I've found the documentation for Pyes, but I am not sure if this is the…
Wiz
  • 4,595
  • 9
  • 34
  • 51
1
vote
1 answer

Configure a tokenizer with pyes

I'm trying to configure one of my fields to use an edge ngram tokenizer. I'm trying to translate the following gist that I found (https://gist.github.com/1037563): { "mappings": { "contact": { "properties": { …
aloon
  • 13
  • 2
0
votes
1 answer

[ Install Library Pyes in PyCharm ]

I am installing Pyes in Python. I installed pyes in anaconda. But I haven't find library Pyes in PyCharm 1: Picture when install Anaconda 2: Picture when find in PyCharm