2014-07-01 23:58 GMT+02:00 Michael Eickenberg <[email protected]>:
> (the 4th one is typically a kwarg it didn't care about)
Ah:
from elasticsearch import Elasticsearch
es = Elasticsearch()
hits = [es.termvector('20news', 'post', i, fields=['text']) for i in
range(1, 4)]
does the trick, and getting the number of documents is
n_docs = es.count('20news')['count']
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general