suggest multiple words

  • webmasterbslnl
    Participant
    # 9 months, 3 weeks ago

    Hi, is it possible to tweak SOLR and/or WPSolr so that whenever someone types in “studen” it will not only suggest only single keywords like “students”, “studeren”, “studenten” etc. but also suggest ‘student corner’ (which contains multiple keywords)?
    Thanks,
    Harmen

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    I’m not sure it is possible out of the box with Solr.

    According to https://blog.griddynamics.com/implementing-autocomplete-with-solr/, getting Solr ordered multi-terms suggestions require a custom TokenFilter development.

    For Elasticsearch, WPSOLR uses the default Phrase suggester.

    webmasterbslnl
    Participant
    # 9 months, 3 weeks ago

    Thanks for pointing me in the right direction!

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    Let me know if you find something that you’d like to be integrated in WPSOLR core.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.