SolrNet, the C# client for Apache Solr, has a new release: 0.5.1. The current release aims to include a breaking change with the latest versions of Solr 4.x in which multiple collations are returned by Solr. I am currently working on getting it to Nuget
This is the release:
SolrNet Release 0.5.1: Fix Spellcheck Parser Issue
Let me show you quickly with an example, here is how a single collation was returned before:
<response>
<result numFound=”1″ start=”0″>
<doc>
<str name=”Key”>224fbdc1-12df-4520-9fbe-dd91f916eba1</str>
</doc>
</result>
<lst name=”spellcheck”>
<lst name=”suggestions”>
<lst name=”hell”>
<int name=”numFound”>1</int>
<int name=”startOffset”>0</int>
<int name=”endOffset”>4</int>
<arr name=”suggestion”>
<str>dell</str>
</arr>
</lst>
<lst name=”ultrashar”>
<int name=”numFound”>1</int>
<int name=”startOffset”>5</int>
<int name=”endOffset”>14</int>
<arr name=”suggestion”>
<str>ultrasharp</str>
</arr>
</lst>
<str name=”collation”>dell ultrasharp</str>
</lst>
</lst>
</response>
And then with later versions of Solr 4.x multiple collations were returned:
<response> <result name="response" numFound="0" start="0"></result> <lst name="spellcheck"> <lst name="suggestions"> <lst name="produtc"> <int name="numFound">1</int> <int name="startOffset">0</int> <int name="endOffset">7</int> <arr name="suggestion"> <str>product</str> </arr> </lst> <lst name="collation"> <str name="collationQuery">product</str> <int name="hits">1000</int> <lst name="misspellingsAndCorrections"> <str name="produtc">product</str> </lst> </lst> </lst> </lst> </response>
The detail was that SolrNet would raise an issue because the numFound node was not found. Well, this issue was fixed now.
This is just the first release that I do on SolrNet since I was granted permission to provide new releases. I am merely getting up to speed to work my way through the backlog of improvements and including support for newer releases of Solr.
If you have any questions, don’t hesitate to contact me via this blog or @xmorera in Twitter.