Class: Ferret::Analysis::HyphenFilter

Inherits:
Object
  • Object
show all
Defined in:
ext/r_analysis.c

Overview

Summary

HyphenFilter filters hyphenated words by adding both the word concatenated into a single word and split into multiple words. ie “e-mail” becomes “email” and “e mail”. This way a search for “e-mail”, “email” and “mail” will all match. This filter is used by default by the StandardAnalyzer.

Example

["e-mail", "set-up"] => ["email", "e", "mail", "setup", "set", "up"]