Skip to content

Commit 89bcd96

Browse files
committed
Luke: Added couch filter support to the river wrapper.
1 parent a829abe commit 89bcd96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

elasticpy.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def index_close(self, index):
236236
s = urllib2.urlopen(url_request).read()
237237
return json.loads(s)
238238

239-
def river_couchdb_create(self, index_name,index_type='',couchdb_db='', river_name='',couchdb_host='localhost', couchdb_port='5984',script=''):
239+
def river_couchdb_create(self, index_name,index_type='',couchdb_db='', river_name='',couchdb_host='localhost', couchdb_port='5984',couch_filter=None,script=''):
240240
'''
241241
https://github.com/elasticsearch/elasticsearch-river-couchdb
242242
@@ -260,7 +260,7 @@ def river_couchdb_create(self, index_name,index_type='',couchdb_db='', river_nam
260260
'host' : couchdb_host,
261261
'port' : couchdb_port,
262262
'db' : couchdb_db,
263-
'filter' : None
263+
'filter' : couch_filter
264264
},
265265
'index' : {
266266
'index' : index_name,

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
version=elasticpy.__version__,
99
description='Python Wrapper for elasticsearch',
1010
author='Luke Campbell',
11-
author_email='luke.s.campbell@gmail.com',
12-
url='http://lukecampbell.github.com',
11+
author_email='LCampbell@ASAScience.com',
12+
url='http://github.com/ooici/elasticpy/',
1313
license='Apache 2.0',
1414
py_modules=['elasticpy'],
1515
data_files = [('.', ['COPYING', 'README.md'])]

0 commit comments

Comments
 (0)