Forum: Ferret index#term_docs returns no docs / term_docs_for does

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Derek H. (Guest)
on 2007-05-29 19:58
(Received via mailing list)
I'm building my first Filter and I'm running into an issue with

As I understand it, index_reader.term_docs should return a
term-document enumerator for the entire index:

index_reader.term_docs => empty set

However, I'm getting an empty set. Interestingly enough, the following:

index_reader.term_docs_for(:name, 'coffee') => lots of documents

Is returning plenty of documents.

I'm expecting #term_docs to return an enumerator that allows me to
step through the entire index - any ideas on what I'm doing wrong?

I'm using acts_as_ferret and I'm on version 0.10.13 of the gem on OSX.

Thanks in advance for any assistance,


Derek H.
Highgroove Studios -
San Francisco, CA | Atlanta, GA
Keeping it Simple.

Slingshot - Ruby on Rails Business Hosting
This topic is locked and can not be replied to.