Python ES and Carrot2

Stackoverflow link:

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+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.

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 Overflow

I 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.

Thanks a ton.

On Tue, Apr 22, 2014 at 5:55 PM, Honza Král honza.kral@elasticsearch.comwrote:

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 Overflow

I 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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/me8mVYhhB-Q/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
Pratik Poddar
www.linkedin.com/in/pratikpoddar

--
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/CAFiYsPdu7z5Y1n70a%2B7w-t%3D_7HDREJJOe4R6TiT2M7dSX1zAqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.