Hi, I'm having an issue querying couchdb-lucene for a non-analyzed field
with a space -- here's my index.js function:
function(doc) {
var ret = new Document();
ret.add("foo bar", { field: "tag1", index: 'not_analyzed' });
ret.add("baz", { field: "tag2", index: 'not_analyzed' });
return ret;
}
The following query for tag1 value with a space does not pull back the
expected results:
http://localhost:5984/lucenetest/_fti/_design/test/search?q=tag1:%22foo%20bar%22
However, the query for tag2 with no space works as expected:
http://localhost:5984/lucenetest/_fti/_design/test/search?q=tag2:%22baz%22
Is there something I need to do to escape this value correctly?