You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/04/27 11:58:31 UTC

[GitHub] willholley commented on issue #1294: Mango query uses a certain index but not when that index is specified in use_index

willholley commented on issue #1294: Mango query uses a certain index but not when that index is specified in use_index
URL: https://github.com/apache/couchdb/issues/1294#issuecomment-384949263
 
 
   @garbados I think the issue here is that the design document is `_design/e989afba40865ef0c0cb81babca885c21e33cd49` rather than `_design/name`. You can control the design document name at index creation time by specifying `"ddoc"` but the default will just be a uuid.
   
   According to the documentation:, `"use_index"` should be specified as `"<design_document>" or ["<design_document>", "<index_name>"]`, so do you get the expected result if you do:
   
   ```
   $ curl -X POST -H 'content-type:application/json' $COUCH_URL/contacts/_find -d '{ "selector": { "name": "Diana" }, "use_index": "_design/e989afba40865ef0c0cb81babca885c21e33cd49" }'
   ```
   ?

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