rnewson commented on issue #4997: URL: https://github.com/apache/couchdb/issues/4997#issuecomment-2019878585
rehi (I've been out on vacation the last few weeks). I've mocked up a few approaches to this locally and I don't like any of them, they all either have a non-trivial overhead or other odd side-effects more surprising than what you've encountered. I think the right move is to clarify that if you index with type "string" _and_ you intend to search on that field (as opposed to only sorting on it, for example), then you need to specify the "keyword" analyzer for that field in the index definition. If you do that, everything works out nicely. In your case I think you actually do want the "text" type for "lastName", so that you can search case-insensitively, but only you know for sure. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
