How to get the suggester component working in SolrNet?

前端 未结 5 1162
遥遥无期
遥遥无期 2020-12-30 16:06

I have configured my solrconfig.xml and schema.xml to query for the suggestions.

I am able to get the suggestions from the url

http://localhost:8080/         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 16:45

    Passing the qt parameter does NOT work, at least not in Solr 4.7 even with handleSelect=true in SolrConfig. You can verify by specifying a custom handler that's very dissimilar from the default /select, say make yours use edismax and send debugQuery = true in ExtraParams and catch the results in Fiddler.

    Also if you read the explanation on the handleSelect flag it says "if the request uses "/select" but there is no request handler by that name".

    You don't want to touch or disable the /select handler because Solr uses it itself.

    I ended up using ExtraParams to pass all the values I defined in my custom handler, there weren't that many. Seemed better than just using part of SolrNET and then doing the result parsing.

提交回复
热议问题