• Resolved turnkey13

    (@turnkey13)


    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)
  • Plugin Author WPSolr free

    (@wpsolr)

    We provide a default suggester in WPSOLR config files. Up to you to customize them.

    Thread Starter turnkey13

    (@turnkey13)

    I see the responseparser.php, Is it the correct file to customize?

    I kindly ask you to provide the relevant files for suggester?

    Thread Starter turnkey13

    (@turnkey13)

    I see that the plugin developed over solarium php client library and suggester is inside that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New Solr Suggester compability with WPSOLR’ is closed to new replies.