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
0
votes
0 answers

ElasticSearch PyES FunctionScoreQuery

I am trying to use pyes.query.FunctionScoreQuery in python but getting this error NameError: name 'FunctionScoreQuery' is not defined I am using PyES version 0.19.1. I tried to look for this function in the API though dir(pyes.query) but it…
Waseem
  • 1,392
  • 5
  • 21
  • 30
0
votes
1 answer

datetime in pyes results

I am indexing and then querying an dictionary that contains a datetime Some documents in the results contain a string representation of the date and some return and actual datetime. The actual documents that have the datetime change if I re_index. I…
Douglas Ferguson
  • 1,242
  • 2
  • 14
  • 25
0
votes
1 answer

Get sorted search result in pyes

Here is a minimal example. I have an index 'test_index' with the following records: {u'name': u'b'} {u'name': u'e'} {u'name': u'a'} {u'name': u'c'} {u'name': u'd'} I want to get the records in alphabetical order of the 'name' field. I use the sort…
Joe
  • 2,994
  • 5
  • 31
  • 34
0
votes
2 answers

Improve the performance of ElasticSearch

I am using ElasticSearch to index some data. But I found that the performance is not that efficiency. There are only 3000 entries data and each data has 6 columns. It costs 5 mins to index these 3000 entries. Because I am new with ElasticSearch, my…
Jimmy Lin
  • 1,481
  • 6
  • 27
  • 44
0
votes
1 answer

Elasticsearch sorting fails after update / insert

I'm inserting documents into elasticsearch and trying to sort on a given field that's present in all documents. However, whenever I update a document, indexing seems to break and I do not get a sorted order. I have created an index by…
the_man_slim
  • 1,155
  • 2
  • 11
  • 18
0
votes
1 answer

Custom score in Elastic Search

I have an index, where each document represents a class, with list of students and a list of teachers. Here is the mapping: { "properties" : { "students" : { "include_in_root" : 1, "type" : "nested", "properties" : { …
diemacht
  • 2,022
  • 7
  • 30
  • 44
0
votes
1 answer

Unable to redirect python script result to a text file in windows

Here is my python code.I'm trying to do elastic search in python. from pyes import * from pyes.mappings import * conn = ES('http://search.twitter.com/search.json?q=poplio') conn.indices.create_index("test-index") I'm trying this tutorial pyes The…
iJade
  • 23,144
  • 56
  • 154
  • 243
0
votes
1 answer

python elastic search not working pyes package issues

Installed pyes recently , but when i tired it in the python shell it is giving the error, Can any one please help me out in this regard: Traceback (most recent call last): File "", line 1, in File…
Niranjan Sagar
  • 819
  • 1
  • 15
  • 17
0
votes
1 answer

How to get a response from Elastic Search after indexing?

I'm using CouchDB river plugin with Elastic Search. In my web application, I am using CouchDB's bulk insert to insert documents into CouchDB. This triggers the changes feed and ES reads this to index my documents. The problem now is that my web…
Mark
  • 2,137
  • 4
  • 27
  • 42
0
votes
2 answers

elastic search performance using pyes

Sorry for cross posting.The following question is also posted on Elastic Search's google group. In short I am trying to find out why I am not able to get optimal performance while doing searches on a ES index which contains about 1.5 millon…
Abhi
  • 6,075
  • 10
  • 41
  • 55
0
votes
1 answer

Pyes: Selective assignment of Object Type to JSON

I was trying to understand and to work through some example usages of PyES with elastic search when I found this snippet on Object Type: http://packages.python.org/pyes/guide/reference/mapping/object-type.html In the example JSON: { "tweet" :…
Mark
  • 2,137
  • 4
  • 27
  • 42
-1
votes
1 answer

python elasticsearch client error: timed out while get_alias

I am new to python and elasticsearch and i am trying to run a sample application. But my elasticsearch connection shows some error. I have installed elasticsearch and started the server. In the application there is a code like this ES_URL =…
shahana hamza
  • 107
  • 1
  • 1
  • 10
1 2 3 4
5