- pyelasticsearch — pyelasticsearch 1.4.1 documentation #ril
- Comparison with elasticsearch-py, the “Official Client” — pyelasticsearch 1.4.1 documentation #ril
- A Taste of the API - pyelasticsearch — pyelasticsearch 1.4.1 documentation #ril
-
Make a pooling, balancing, all-singing, all-dancing CONNECTION OBJECT: 其中 pooling/balancing 指的是什麼??
>>> from pyelasticsearch import ElasticSearch >>> es = ElasticSearch('http://localhost:9200/') -
Index a document:
>>> es.index('contacts', # index(index, doc_type, doc, id=None, ...) ... 'person', ... {'name': 'Joe Tester', 'age': 25, 'title': 'QA Master'}, ... id=1) {u'_type': u'person', u'_id': u'1', u'ok': True, u'_version': 1, u'_index': u'contacts'}
-
文件: