willholley commented on issue #1719: Don't use $not to validate use of index
URL: https://github.com/apache/couchdb/pull/1719#issuecomment-439468521
 
 
   @tonysun83 I think the (admittedly subtle) difference is whether the field 
is specified before the operator or not. For instance:
   
   ```
   {
       "$not": {
             "foo": "bar"
       }
   }
   ```
   
   does not require the `"foo"` field to exist in matches but
   
   ```
   {
       "foo": {
             "$not": {
                 ...
            }
       }
   }
   ```
   
   does. Since `"$ne"` can only be expressed in the latter form, I think the 
behaviour is correct with respect to index selection.

----------------------------------------------------------------
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