开发者

How can I use solrj to do a query with spellcheck

开发者 https://www.devze.com 2023-01-25 02:21 出处:网络
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:

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

精彩评论

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