basho/merge_index — pull request #17 by rustyio (2011-10-10 19:49:02+00:00)
Title: AZ825 Inline Field Error

Full description here: https://issues.basho.com/1240

In the 1.0 release, we modified merge_index to include a {Field, Term} entry in the metadata returned for each result. This was intended to be used in 2i.

Since 2i does not use merge_index, and does not use the properties list, we can safely remove the extra {Field, Term} entry.

```bash
# Install the search hook in the desired bucket...
bin/search-cmd install mybucket

# Run some queries. These both work.
bin/search-cmd search mybucket 'myvalue'
bin/search-cmd search mybucket 'myvalue' 'myvalue'

# Now, add data.
curl -X POST \
-d "myvalue" \
http://localhost:8098/riak/mybucket/mykey

# Run the queries again. The first one is fine, the second one fails.
bin/search-cmd search mybucket 'myvalue'
bin/search-cmd search mybucket 'myvalue' 'myvalue'
```