Skip to content

Instantly share code, notes, and snippets.

@thbar
Created September 13, 2009 17:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thbar/186253 to your computer and use it in GitHub Desktop.
Save thbar/186253 to your computer and use it in GitHub Desktop.
Configuration tweaking to allow search words with dash in there in ThinkingSphinx
defaults: &defaults
# charset_table tweak to allow searching words that include dash (-) in thinking sphinx
# this is the default charset but with dash (-) added to ensure it's not considered to be a delimited
charset_table: "-, 0..9, A..Z->a..z, _, a..z, \
U+410..U+42F->U+430..U+44F, U+430..U+44F"
production:
....
<<: *defaults
development:
....
<<: *defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment