开发者

how can I get top terms info from apache solr via Java API

I know http://localhost:8983/solr/admin/schema.jsp can provide me the top terms for any given field, while how can I get them from Java API开发者_运维问答(Java client)


You can use the SolrJ Java client for Solr:

http://wiki.apache.org/solr/Solrj

and more precisely, look at:

import org.apache.solr.client.solrj.response.QueryResponse;


You can use LukeRequestHandler to get the top terms:

http://wiki.apache.org/solr/LukeRequestHandler

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜