I am trying to implement search with Haystack and Whoosh in a Django project.
The CharField
I am trying to index has data like something_like_this
. But it won't show up in the search result if I search for 'something' or 'this. It only works if I search for 'something_like_this'. Is there anyway to search the keywords in the CharFiled
?
All I can think of is to create another CharField
, store the string without underscore of the original string and then index it. But that seems like stupid idea.