rnewson commented on issue #5483: URL: https://github.com/apache/couchdb/issues/5483#issuecomment-2734656902
First point is that string fields are not for searching, and the docs say this, though perhaps it needs to be more prominent. I can explain the odd results in detail; 1) "title": "Lamb Stew" This fails because the query is converted to a phrase query, and a string field is stored without position data (since there's only a single token). The error is definitely ugly, though. 2) "title": "Dumplings" This fails because the value is indexed as `Dumplings` but the _query_ gets case-folded to `dumplings` and therefore doesn't match. 3) "$text": "lamb" This works because adds all string/text fields into the default field. Which is why `"$text": "title:lamb"` doesn't match, because field `title` was not case-folded at index time and `Lamb` != `lamb`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org