New Solr Suggester compability with WPSOLR
-
Hi, I am trying to provide better suggestions to users. I have enabled new solr suggester system on solr side to provide 2 and 3 words suggestions on autocomplete.
I see that response of new suggester is different compared to default suggester response.
https://lucidworks.com/blog/2015/03/04/solr-suggester/
I am looking forward for your support on customizations to enable this response and feed this to WPSOLR.
Default suggester response:
<response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> </lst> <lst name="spellcheck"> <lst name="suggestions"> <lst name="kitab"> <int name="numFound">1</int> <int name="startOffset">0</int> <int name="endOffset">5</int> <arr name="suggestion"> <str>kitabev</str> </arr> </lst> </lst> <lst name="collations"> <str name="collation">kitabev</str> </lst> </lst> </response>
New suggester response:
<response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> </lst> <lst name="suggest"> <lst name="freeSuggester"> <lst name="kitap "> <int name="numFound">10</int> <arr name="suggestions"> <lst> <str name="term">kitap 304</str> <long name="weight">838488366986797824</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 128</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 160</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 192</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 208</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 224</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 288</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap yalniz</str> <long name="weight">558992244657865216</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 144</str> <long name="weight">279496122328932608</long> <str name="payload"/> </lst> <lst> <str name="term">kitap 272</str> <long name="weight">279496122328932608</long> <str name="payload"/> </lst> </arr> </lst> </lst> </lst> </response>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘New Solr Suggester compability with WPSOLR’ is closed to new replies.