Hi Pratik,
if you are using elasticsearch-py you can call any API by using:
es.transport.perform_request (0) directly, that will enable you to use
the carrot2 plugin:
es.transport.perform_request('POST',
'/test/test/_search_with_clustering', body={"search_request": ...})
Hope this helps,
Honza
0 - Connection Layer API — Elasticsearch 8.0.0 documentation
On Tue, Apr 22, 2014 at 11:00 AM, Pratik Poddar pratik.phodu@gmail.com wrote:
Stackoverflow link:
carrot2 - Python Elasticsearch and Carrot - Stack OverflowI am using python Elasticsearch and I need to do document clustering. I
have installed carrot2 (GitHub - carrot2/elasticsearch-carrot2: Carrot2 plugin for ElasticSearch ).How do I call the carrot clustering module from python after
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.search(.....)REST api works but I need to do it using pyelasticsearch. Thanks
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/aca90ff6-c0a7-42cb-ab8c-c1d83ada3146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDirQRShx0OygiEniDBaRjewu9w7BStL1Qnp3QZDOWq0sVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.