Hi,
I''m not exactly sure what you''re doing there, but
''and'' is in Ferret''s
list of default stop words and therefore won''t be indexed by default.
maybe this is the whole problem?
Cheers,
Jens
PS: please post via the real mailing list, this web interface sucks for
posting.
Tom Bak wrote:> Hi,
> I have problem with indexing simple structire.
> Indexing single element works, but dong it in a little bit more complex
> code fails.
[..]
> # this gives no results
> puts index.search(''word: "and"'')
>
> # but his works:
> #index << CorpusIndexedElement.new("a test
> sentence",0,"test","xy").to_ferret_index_hash
> #puts index.search(''word: "test"'')
>
> I run out of ideas :(
>
> Cheers,
> Tomasz
--
Posted via http://www.ruby-forum.com/.