Case-sensitivity of analyzer

Is there anything about this analyzer that says “case-sensitive” to you?

module Ferret::Analysis
class StemmingAnalyzer
def token_stream(field, text)
StemFilter.new(StandardTokenizer.new(text))
end
end
end

Just wondering how I can force my index to be case-insensitive.

Thanks,
-Adam

On Tue, Mar 06, 2007 at 06:48:08AM +0100, Adam T. wrote:

Is there anything about this analyzer that says “case-sensitive” to you?

yep :slight_smile: There’s no LowerCaseFilter involved.

StemFilter.new(LowerCaseFilter.new(StandardTokenizer.new(text)))

should do the trick.

Jens

http://rubyforge.org/mailman/listinfo/ferret-talk


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs