willholley commented on issue #863: Fix exists false when field is explicitly 
defined
URL: https://github.com/apache/couchdb/pull/863#issuecomment-335793839
 
 
   @tonysun83 "index everything" does sound like a special case where 
`"$exists":false` could be fulfilled by the text index. Text indexes in general 
will behave differently to `_all_docs` or JSON indexes when range queries are 
used. 
   
   For example `{ "name": {"$gt": 0}}` against a text index would only match 
documents where the value of `"name"` is an integer, whereas against 
`_all_docs` it will match documents where `"name"` is a string / object / array 
as well. This extends to `null` handling - text indexes do not include `null` 
values in range query results whereas other index types do.
   
   I'd really like to address the difference in range handling between the 
index types (adding an index should never change the results of a query) but I 
think that needs a separate discussion / PR as it will be a breaking change to 
align them.
 
----------------------------------------------------------------
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

Reply via email to