search for: test_add_indexes_uniqu

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

2007 Jun 07
0
Unique :key not maintained after add_indexes?
Hi, When adding an index to another one using add_indexes I get duplicates even though I use the :key attribute. For example: def test_add_indexes_uniqueness index1 = Ferret::Index::Index.new(:key => :id) index2 = Ferret::Index::Index.new(:key => :id) # Add two items with same id index1 << {:id => 23, :data => "This is the data..."} index1 << {:id => 23, :data => &quot...