Fix for Query Options search

Closes COUCHDB-2451