Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Search pages
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 May 2011 at 23:44 UTC
Updated:
7 Jun 2011 at 10:31 UTC
I'm working on Search API Spellcheck module here:
http://drupal.org/sandbox/JoeMcGuire/1150950
For Search API Views I was able to add the support from the Search API Spellcheck module by providing another field which can be added to a View's header or footer.
I haven't found a way to extend the Search API Page module so instead I have attached a patch for the module. This allows the page module to include "did you mean ..." based on the Spellcheck module being installed and the server/service supporting it.
There are patches in for both Solr and Xapian, see the sandbox page above for their statuses.
Let me know what you think.
| Comment | File | Size | Author |
|---|---|---|---|
| search-api-page-spellcheck.patch | 3.95 KB | JoeMcGuire |
Comments
Comment #1
drunken monkeyLooks good to me, thanks!
Note that hooking into search page searches and executing
drupal_set_message()would probably have been possible, too – but this seems to me the better approach.Anyone else want to comment?
Comment #2
JoeMcGuire commentedI've got a recommended release it works with now on a full project page
http://drupal.org/project/search_api_spellcheck
Comment #3
drunken monkeyJust committed this, thanks again!