"Did you mean" search suggestion feature

  • johnnyash
    Participant
    5 years, 3 months ago #9321

    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
    5 years, 3 months ago #9326

    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
    5 years, 2 months ago #10033

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

    wpsolr
    Keymaster
    5 years, 2 months ago #10034
    rvs
    Participant
    3 years, 10 months ago #19897

    Yes where does it display???

    wpsolr
    Keymaster
    3 years, 10 months ago #19898

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

    rvs
    Participant
    3 years, 10 months ago #19902

    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
    3 years, 10 months ago #19909

    Anyone?

    wpsolr
    Keymaster
    3 years, 10 months ago #19910

    It works only with our Ajax search template.

    rvs
    Participant
    3 years, 10 months ago #19913

    thnx

    mcl7
    Participant
    3 years, 3 months ago #23144

    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
    3 years, 3 months ago #23151

    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.