哪些词出现在索引字段中最常见? [英] Which words appear the most common in an indexed field?
本文介绍了哪些词出现在索引字段中最常见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Solr 中查询最常见的索引词?例如,给定每个文档的这些字段:
How could I query Solr for the most common indexed words? For example, given these fields for each document:
- 有一位女士确信所有的闪光都是金色的.
- 黄金比白银更值钱.
- 这位女士戴着金手镯.
我希望 Solr 以任何格式返回给我以下输出:
I would like Solr to return to me, in any format, the following output:
- 黄金 (3)
- 女士 (2)
- the (2)//作为停用词,这并不是必需的
- ...
谢谢.
推荐答案
使用 luke 请求处理程序
Use the luke request handler
http://wiki.apache.org/solr/LukeRequestHandler
示例:
http://localhost:8983/solr/admin/luke?fl=Your_Indexed_Field&numTerms=500
这篇关于哪些词出现在索引字段中最常见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文