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 2019/06/27 09:13:36 UTC
[GitHub] [couchdb] brifai opened a new issue #2063: index with $or operator
not working
brifai opened a new issue #2063: index with $or operator not working
URL: https://github.com/apache/couchdb/issues/2063
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
## Description
I am trying to create an index for a query with "$or" operator but the query plan does not recognize the index.
my question is, how to create a working index for the following query ?
<pre>
{
"selector": {
"type": "project",
"$or": [
{
"pmId": "8b1cee44bf16ccced9163adee20008a8"
},
{
"sponsor._id": "8b1cee44bf16ccced9163adee20008a8"
},
{
"AccessMembers": {
"$elemMatch": {
"$and": [
{
"id": "8b1cee44bf16ccced9163adee20008a8"
},
{
"ACL": {
"$in": [
"View",
"Edit"
]
}
}
]
}
}
}
]
}
}
</pre>
## Steps to Reproduce
[NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
## Expected Behaviour
[NOTE]: # ( Tell us what you expected to happen. )
## Your Environment
[TIP]: # ( Include as many relevant details about your environment as possible. )
[TIP]: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
* CouchDB Version used:
v. 2.1.1
* Browser name and version:
* Operating System and version:
Windows Server 2016 Datacenter
## Additional context
----------------------------------------------------------------
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
With regards,
Apache Git Services