search for: test_index_document_sanity_check

Displaying 1 result from an estimated 1 matches for "test_index_document_sanity_check".

2006 Mar 08
1
indexing a document object fails
...ed/config/../vendor/ferret/index/index.rb:259:in `<<'' C:/dev/workspace/fred/config/../vendor/ferret/index/index.rb:238:in `synchronize'' C:/dev/workspace/fred/config/../vendor/ferret/index/index.rb:238:in `<<'' C:\dev\workspace\fred/test/unit/user_test.rb:56:in `test_index_document_sanity_check'' Which appears to be caused because elsif doc.is_a?(Document) is expecting a Ferret::Document rather than Ferret::Document::Document. When I change this line to elsif doc.is_a?(Document::Document) I get past the indexing part, and am able to retrieve the document...i.e. index.search...