Hi all. I'm building a services search for our county govt.
and I have already implemented the "Did you mean:" list. And now I
would like to incorporate into that same list options to search by
alternate spellings. For instance, if someone enters "cheld" into
the search field, the results will come back "cheld" not found. The
results page should offer a list of alt spellings they can click on
to execute a search by that alternate spelling.
Has anyone tried this? I don't want to use the <typo>
evidence operator since that executes the search to find records by
the alt spelling. I want to present the list first and then allow
the user to go find the keyword(s).
I think <typo> will do what you want. You could to the
<typo> search and check the search results against the
criteria. If the criteria is not in the search results, you could
display the "Did you mean" message along with the list retrieved.
If the criteria IS in the list, do the search again without the
<typo> and display the results.