开发者

How can I use solrj to do a query with spellcheck

usually , we use http get method to do a spellcheck query, but now I have to use solrj to do this, pls help me to so开发者_JAVA百科lve this question , thx.


You can specify all parameters via:

query.setParam("spellcheck", "true");
query.setParam("spellcheck.q", query);


Try the code in the Wiki page. I believe it does what you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜