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 - http://elasticsearch-py.readthedocs.org/en/master/connection.html#elasticsearch.Transport.perform_request On Tue, Apr 22, 2014 at 11:00 AM, Pratik Poddar <pratik.ph...@gmail.com> wrote: > Stackoverflow link: > http://stackoverflow.com/questions/23047976/python-elasticsearch-and-carrot > > I am using python elastic search and I need to do document clustering. I > have installed carrot2 (https://github.com/carrot2/elasticsearch-carrot2 ). > > 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+unsubscr...@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+unsubscr...@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.