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.
精彩评论