Tag: elasticsearch

使用Node JS客户端从Elasticsearch索引中提取最重要的单词

受以下git和video的启发,我试图为我的域名创build概念性search,使用word2vec作为我的查询的同义词filter。 给出以下文件结构: { "_index": "conversations", "_type": "conversation", "_id": "103130", "_score": 0.97602403, "_source": { "context": "Welcome to our service, how can I help? do you offer a free trial", "answer": "Yes we do. Here is a link for our trial account." } } 我想遍历整个索引,并提取“更重要”(tf-idf?)的单词。 一旦我有了前100个单词列表,我将使用word2vec创build一个同义词filter。 我的问题是:如何使用ES节点JS客户端做到这一点?