Displaying 4 results from an estimated 4 matches for "asciistandardanalyz".
Did you mean:
asciistandardanalyzer
2006 Sep 05
4
No matches
...clude Ferret
path = ''/tmp/myindex''
field_infos = Ferret::Index::FieldInfos.new()
field_infos.add_field(:name, :store => :yes, :index => :yes)
field_infos.create_index(path)
index = Index::Index.new(:path => path, :field_infos => field_infos,
:analyzer => Analysis::AsciiStandardAnalyzer.new)
index << {:name => "Joe"}
index << {:name => "Sandy"}
index << {:name => "Billy"}
index << {:name => "Lona"}
index << {:name => "Frank"}
index.optimize
query = Search::TermQuery.new(:name, "...
2006 Aug 26
4
[0.10.0] Index#add_document bug with strange value ?
Perhaps, I found where is my problem (during a big import).
Why this silly (really silly :)) example crash ?
http://pastie.caboo.se/10357
/usr/lib/ruby/site_ruby/1.8/ferret/index.rb:211:in `add_document'': IO
Error occured at <except.c>:79 in xraise (IOError)
Error occured in fs_store.c:225 - fso_flush_i
flushing src of length -2
from
2006 Sep 26
4
Some documents not found
...ector => :no, :store =>
:yes)
fi.add_field(:content, :index => :yes, :term_vector => :no, :store =>
:no)
fi.create_index("search-index-new")
# open it...
index = Ferret::Index::Index.new(:path => ''search-index-new'', :analyzer
=> Ferret::Analysis::AsciiStandardAnalyzer.new )
# get the products...
start = Time.new
puts ''loading product data''
offset = 0
batch_size = 100
loop do
prods = Vandelay::Product.find(:all, :limit => batch_size, :offset =>
offset, :include => [:descriptions, :categories, {:skus =>
:supplieritems}])
off...
2006 Jul 12
9
ferret using UTF-8
Hey all,
I went through the docs in Ferret''s page, plus a quick search through
the email list (thread titles), and I couldn''t find any info on how to
have Ferret storing it''s data using UTF-8.
In the scenario I would use it, nothing''s being stored outside (like
external databases). So it''s just how Ferret would do it that I''m
interesting in