Can porterstemmer split 'words' by '.' or '-'?
Kevin.Kunkel - June 7, 2009 - 20:29
| Project: | Porter-Stemmer |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have CCK nodes that have fields exposed to search with values like '8853-25X' and ''myserver.subdomain.domain.tld'. From these examples, I'd like '8853', '25X', 'myserver', 'subdomain', 'domain' and 'tld' indexed and be able to search with one of those strings. I believe porterstemmer doesn't do this, (if it does, then I've got problems on my end). I see the module has a number of step functions, should I add another one? or modify the porterstemmer_search_preprocess function?

#1
A better thing to do would be to create your own preprocessing module and implement the preprocess hook there. The Search module calls all available hooks, in sequence, passing the output of one into the next. See:
http://api.drupal.org/api/function/search_invoke_preprocess/6
#2
Automatically closed -- issue fixed for 2 weeks with no activity.