fix for duplicate results showing up after searches

See ticket for scope: https://issues.apache.org/jira/browse/COUCHDB-2376