In a project at work I needed to have sphinx treat accented characters and their unaccented versions the same, eg: é
is equivalent to e, etc. I took this list I found on the sphinx wiki and transformed it into a sphinx friendly charset_table.
Now when I do a search for the string "Héctor Lavoe" it matches the string "Hector Lavoe". Awesome!
Edit: fixed missing "é" in first sentence.
3 comments:
Thank you. Just made my day.
thanks, I tried the same but somehow I couldn't get the format right, dunno why, but copy pasting it from your example works fine..probably an afternoon thing but still helpful!
Works like a charm, made my day too. Thanks for the tips!
Post a Comment