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 2020/08/25 07:28:51 UTC

[GitHub] [couchdb] raji94 opened a new issue #3097: Using $in or $or operator does not seems to be using indexing

raji94 opened a new issue #3097:
URL: https://github.com/apache/couchdb/issues/3097


   
   my index definition
   {
   	"index": {
   		"partial_filter_selector": {
   			"objectType":"po" 
   		},
   		"fields": ["company","product","location"]
   	},
   	"ddoc": "indexPODoc",
   	"name": "indexPO",
   	"type": "json"
   }
   my query:
   {
   	"selector": {
                   "company": "X",
   		"location": {
   			"$in": ["location1", "location10"]
   		},
   		"objectType": "po",
   		"product": {
   			"$in": ["product1", "product10"]
   		}
   	},
   	"use_index": ["indexPODoc", "indexPO"]
   }
   This is the start key and end key, seems like it is considering only company field
   "start_key": [
      "X"
     ],
     "end_key": [
      "X",
      "<MAX>"
     ],


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [couchdb] wohali closed issue #3097: Using $in or $or operator does not seems to be using indexing

Posted by GitBox <gi...@apache.org>.
wohali closed issue #3097:
URL: https://github.com/apache/couchdb/issues/3097


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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