I’m trying to add a module wide search for my App and found haystack-search. I took whoosh to store the search information.
I’ve configured my search as told in the docs and already can find results.
The problem I have is a field which stores and email-address (“test@testdomain.com”). When I search for “testdomain” I will not get any results but when I search for “tesdomain.com” I’ll get some results. Now I want to get the results (which I get when “testdomain.com” is entered) when I enter “testdomain”. Any ideas how this can be done?
Did someone ever posted to the mailinglist of haystack? For me it is not possible to post even if I’m a member of the google-group.
regards
Martin
Now I have the answer for the problem.
The standard search shipped with haystack does not support searching by substrings.
I createt my own app (mysearch) for searching which will use haystacksearch
What you have to do is to create your own SearchForm (mysearch/forms.py)
Then you have to create your own url-route using your own SearchForm (mysearch/urls.py)
in your projects urls.py use
instead of