"Did you mean" search suggestion feature

  • johnnyash
    Participant
    # 3 years, 6 months ago

    Hello, is it possible to access the “Did you mean” search suggestion feature within my custom template?

    This page is not so clear: https://www.wpsolr.com/knowledgebase/which-search-templates-are-available/

    Thank you

    wpsolr
    Keymaster
    # 3 years, 6 months ago

    Hello,

    The “Did you mean” feature works as follow:
    1) A search is performed on some keywords
    2) No results are retrieved
    3) Suggestions are retrieved for the keywords, based on the spellchecking setting from the index type/schema
    4) A second search is performed on the first suggested keywords (if suggestions are not empty)
    5) The search template display the results from the suggested search

    Everything is automatic, and works in the background.

    jerome.tan
    Participant
    # 3 years, 5 months ago

    Sorry to hijack the thread, where does this usually output? It doesn’t seem to be working for me.

    wpsolr
    Keymaster
    # 3 years, 5 months ago
    rvs
    Participant
    # 2 years, 1 month ago

    Yes where does it display???

    wpsolr
    Keymaster
    # 2 years, 1 month ago

    “Did you mean” appears only on the WPSOLR Ajax search template, not on your theme’s search template.

    rvs
    Participant
    # 2 years, 1 month ago

    1. can’t find the option to enable it in the backend
    https://ibb.co/W2ksjbM

    2. Probably when enabled it shows in the default suggestion input box.
    Does it work with “current theme.. without ajax” ?

    thnx

    rvs
    Participant
    # 2 years, 1 month ago

    Anyone?

    wpsolr
    Keymaster
    # 2 years, 1 month ago

    It works only with our Ajax search template.

    rvs
    Participant
    # 2 years, 1 month ago

    thnx

    mcl7
    Participant
    # 1 year, 6 months ago

    How do you go about adding the “did you mean” when queries are misspelled? Doing some tests I cant get that message to display.

    wpsolr
    Keymaster
    # 1 year, 6 months ago

    The “Did you mean” feature is only available wit the WPSOLR search Ajax template, not with your theme search template.

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

You must be logged in to reply to this topic.