Index#term_docs returns no docs / term_docs_for does


#1

I’m building my first Filter and I’m running into an issue with
Ferret::Index::IndexReader#term_docs.

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


Derek H.
Highgroove Studios - http://www.highgroove.com
San Francisco, CA | Atlanta, GA
Keeping it Simple.
404.593.4879

Slingshot - Ruby on Rails Business Hosting
http://www.slingshothosting.com