This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
This is a fork of Greg's gist, which allows use of character folding with haystack and whoosh. What | |
I've done was to add allow EdgeNGram fields to be folded. This is useful if you're using autocomplete | |
or just indexing text as EdgeNGram field to allow partial keywork search. Thanks, Greg. Have fun. | |
-+- original comments -+ | |
https://gist.github.com/gregplaysguitar/1727204 |