Skip to content

Commit

Permalink
Merge pull request #816 from razee-io/index_fix
Browse files Browse the repository at this point in the history
fix: creating a better index
  • Loading branch information
dalehille committed Mar 11, 2021
2 parents c58d129 + 784b3f0 commit 5eb01a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ async function initialize(){
options: { name: 'org_id.cluster_id.selfLink', }
},
{
keys: { org_id: 1, cluster_id: 1, 'searchableData.subscription_id': 1, 'searchableData.kind': 1, 'searchableData.children': 1 },
keys: { org_id: 1, cluster_id: 1, selfLink: 1, 'searchableData.subscription_id': 1, deleted: 1 },
options: { name: 'org_id.cluster_id.subid.deleted', }
},
{
keys: { org_id: 1, cluster_id: 1, 'searchableData.kind': 1, 'searchableData.children': 1, deleted: 1 },
options: { name: 'org_id.cluster_id.subid.kind.children', }
},
{
Expand Down

0 comments on commit 5eb01a3

Please sign in to comment.