willholley commented on issue #791: Check all indexed fields are in the selector URL: https://github.com/apache/couchdb/pull/791#issuecomment-327129665 JSON indexes only index documents where all the fields are non-null. I think this PR needs to account for `null` comparisons when matching the fields in the selector against the index. For example, if I have an index on: ``` ["user_id", "age"] ``` and a selector `{"user_id": {"$lt":8}, "age": { "$gte": null }}` then the index would not be valid, even though the fields in the selector match the index, because using the index would skip any documents where `age` is null. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
