【问题标题】:Python Elasticsearch and CarrotPython Elasticsearch 和胡萝卜
【发布时间】:2014-05-27 16:44:45
【问题描述】:

我正在使用 python 弹性搜索,我需要进行文档聚类。我已经安装了胡萝卜2(https://github.com/carrot2/elasticsearch-carrot2)。

之后如何从python调用胡萝卜聚类模块

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

【问题讨论】:

    标签: elasticsearch carrot2 pyelasticsearch


    【解决方案1】:

    用于 ES 的 Carrot2 插件可让您访问位于

    的集群文档
    http://localhost:9200/_plugin/carrot2/ (or wherever your ES node is deployed)
    

    查看github项目页面中的usage guide

    不支持从 pyelasticsearch 访问 carrot2 集群。您可以在 pyelasticsearch 的搜索结果之上应用胡萝卜2。如果您需要使用胡萝卜2,请查看carrot2 project。其他的看看一些python文本聚类工具here

    【讨论】:

    • 如何在 pyelasticsearch 的搜索结果上应用胡萝卜2?
    • 您必须将carrot2 集群构建为服务并从您的python 项目中调用它。您不能使用现有的 python 集群工具有什么特别的原因吗?
    • 现有的python集群工具不关心宇宙的知识。我想使用 1000000 个文档的信息将 10 个文档聚类成 n 个簇。我猜carrot2是要走的路。
    • 你能检查一下这个问题吗:stackoverflow.com/questions/23540328/…
    • 是的,如果你想使用这个插件,你可以离开 pyelasticsearch。 REST 是要走的路。将在线程上回复。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多