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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
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
This topic is locked and can not be replied to.