Pregunta

Estoy usando la búsqueda elástica de Python y necesito hacer agrupamiento de documentos.He instalado Carrot2 ( https://github.com/carrot2/elasticsearch-carrot2 ).

¿Cómo llamo al módulo de agrupamiento de la zanahoria de Python después de

from elasticsearch import Elasticsearch
es = Elasticsearch()
es.search(.....)

¿Fue útil?

Solución

Carrot2 Plugin for ES le dará acceso a los documentos agrupados en

http://localhost:9200/_plugin/carrot2/ (or wherever your ES node is deployed)

Mire la Guía de uso en la página de proyecto GitHub.

No hay soporte para el acceso de clúster de Carrot2 desde Pyelasticsearch.Puede aplicar Carrot2 en la cima de los resultados de búsqueda de Pyelasticsearch.Eche un vistazo al Proyecto de Carrot2 Si necesita usar Carrot2.Otra cosa Eche un vistazo a algunas herramientas de agrupación de texto de Python aquí .

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top