Solrj with Solr Suggester

前端 未结 3 1703
夕颜
夕颜 2021-01-12 23:06

What is the correct way of getting results from solrj using Solr Suggester?

This is my request:

SolrQuery query = new SolrQuery();
query.setRequestHa         


        
3条回答
  •  萌比男神i
    2021-01-12 23:51

    You can get the suggestions via the SpellCheckResponse by doing the following

    SpellCheckResponse spellCheckResponse=response.getSpellCheckResponse();
    

    Check this link for more details

提交回复
热议问题