Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- From: "jallen" <jasonallen@xxxxxxxxx>
- Date: 15 Nov 2005 07:13:08 -0800
I'm really excited about this library. However, after testing it out
I'm a little puzzled by the behavior. To test it out I added about 20
documents, each containing the same 5 fields (with different field
values in each doc). When I then try to query, the results I get seem
random - that is, they don't always return documents that I'd expect
should be matching. Example:
doc = Document.new
....
doc << Field.new("name", "foobar", Field::Store::NO,
Field::Index::UNTOKENIZED)
....
index << doc
Now when i call search_each("foobar"), i dont see a result (with some i
do, others i don't). However, if I call search_each("foobar~"), then it
seems to reliably return the expected matches. Any tips?
-jay
(running ruby 1.8.2 on OS X 10.3.8)
.
- Follow-Ups:
- Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- From: David Balmain
- Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- References:
- Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- From: David Balmain
- Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- Prev by Date: Re: RFC: Audio
- Next by Date: Re: Has anyone written an extconf.rb that depends on a Mac OS Framework?
- Previous by thread: Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- Next by thread: Re: Ferret 0.2.1 (port of Apache Lucene to pure ruby)
- Index(es):
Relevant Pages
|