floere/picky — Issue #39: Dup ids or be non-destructive on attributes?
Author: floere
Created: 2011-11-08 23:32:17+00:00
State: open
Labels: Server, Thinkies

The case:

```ruby
context 'fun cases' do
it 'stopwords destroy ids (final: id reference on attribute)' do
index = Picky::Index.new :stopwords do
key_format :to_sym
indexing stopwords: /and/
category :text
end

referenced = "this and that"

require 'ostruct'

thing = OpenStruct.new id: referenced, text: referenced

index.add thing

try = Picky::Search.new index

try.search("this").ids.should == ["this that"]
end
end
```