Last active
August 29, 2015 14:00
-
-
Save matthuhiggins/52e51aa6bec4798b1d79 to your computer and use it in GitHub Desktop.
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
PROPER_NOUN_INDEX = { | |
"analysis" => { | |
"char_filter" => { | |
"proper_noun_char_filter" => { | |
"type" => "mapping", | |
"mappings" => ["'\''=>", "&=>_", "-=>_"] | |
} | |
}, | |
"analyzer" => { | |
"proper_noun" => { | |
"type" => "custom", | |
"tokenizer" => "standard", | |
"filter" => ["standard", "lowercase", "snowball"], | |
"char_filter" => ["proper_noun_char_filter"] | |
} | |
} | |
} | |
} |
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
PHONE_INDEX = { | |
"analysis" => { | |
"filter" => { | |
"phone_filter" => { | |
"type" => "word_delimiter", | |
"generate_number_parts" => false, | |
"catenate_numbers" => true | |
} | |
}, | |
"analyzer" => { | |
"phone" => { | |
"type" => "custom", | |
"tokenizer" => "keyword", | |
"filter" => ["phone_filter"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment