search for: europeananalyzer

Displaying 3 results from an estimated 3 matches for "europeananalyzer".

2006 Oct 19
2
How to deal with accentuated chars in 0.10.8?
I''m startin to use Ferret and acts_as_ferret. I need to use something like EuropeanAnalyzer (http://olivier.liquid-concept.com/fr/pages/2006_acts_as_ferret_accentuated_chars). By example, if the user search by "gonzalez" you can find documents taht contents the term "gonz?lez" (gonzález) The EuropeanAnalyzer is based on Ferret::Analysis::TokenFilter, but...
2006 Oct 20
0
Ferret 0.10.13 released
...ou can apply a list of mappings string mappings rather than just character mappings. Obviously you could acheive this with a list of "String#gsub!"s but MappingFilter will compile the mappings into a DFA so it will be a *lot* faster. Here is an example: include Ferret::Analysis class EuropeanAnalyzer MAPPING = { [''?'', ''?'', ''?'', ''A'', ''?'', ''?'', ''?'', ''?'', ''?'', ''a''] => ''a'', [''...
2007 Mar 23
5
Any chance to get 0.11.3 on windows soon ?
...@input = input end end # replace accentuated chars with ASCII one class ToASCIIFilter < TokenFilter def next() token = @input.next() unless token.nil? token.text = token.text.tr(ACCENTUATED_CHARS, REPLACEMENT_CHARS) end token end end class EuropeanAnalyzer < StandardAnalyzer def token_stream(field, string) if defined?(MappingFilter) return MappingFilter.new(super, MAPPING) # 0.11.x else return ToASCIIFilter.new(super) # 0.10.x end end end end -- Posted via http://www.ruby-forum.com/.