Displaying 3 results from an estimated 3 matches for "testanalyz".
Did you mean:
testanalyzer
2007 Mar 28
6
trouble with PerFieldAnalyzer
I''m having trouble with PerFieldAnalyzer (ferret version 0.10.14).
Script:
require ''rubygems''
require ''ferret''
require ''pp''
include Ferret::Analysis
include Ferret::Index
class TestAnalyzer
def token_stream field, input
pp field
pp input
LetterTokenizer.new(input)
end
end
pfa = PerFieldAnalyzer.new(StandardAnalyzer.new())
pfa[:test] = TestAnalyzer.new
index = Index.new(:analyzer => pfa)
index << {:test => ''foo''}
index.search_each('&...
2007 Apr 03
3
[Repost] Problem with url searching..
...rl field, of course containing standards
urls...
I''m trying to match them but i actually got problems with that.
Here''s a little code of what i would like to achieve:
require ''rubygems''
require ''ferret''
require ''ftools''
class TestAnalyzer
def token_stream(field, str)
ts = Ferret::Analysis::AsciiStandardTokenizer.new(str)
ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts)
end
end
system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'')
File.mkpath(''/tmp/ferret_t...
2007 Mar 22
0
Url searching ?
...rl field, of course containing standards
urls...
I''m trying to match them but i actually got problems with that.
Here''s a little code of what i would like to achieve:
require ''rubygems''
require ''ferret''
require ''ftools''
class TestAnalyzer
def token_stream(field, str)
ts = Ferret::Analysis::AsciiStandardTokenizer.new(str)
ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts)
end
end
system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'')
File.mkpath(''/tmp/ferret_t...