You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/10/05 16:56:25 UTC

[GitHub] tonysun83 commented on issue #863: Fix exists false when field is explicitly defined

tonysun83 commented on issue #863: Fix exists false when field is explicitly defined
URL: https://github.com/apache/couchdb/pull/863#issuecomment-334526790
 
 
   @willholley : It's worth noting that the behavior is going to be different for because of how we perceive $exists "should" work. If we indexed everything, and we queried ```{"foo": {"$exists": false}}```, then we would return  all the documents in the db that did not have "foo" as a field in the document. However, if you explicitly indexed "foo", then you would get 0 results back because you only indexed the subset of documents that contained "foo" as a field. The large (all_docs)superset is not part of the index, and therefore would not be returned. So _all_docs, explicit json index, index everything, and explicit text index would all return different results. 
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services