You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm using rethinkdb-2.0.2. When running getAll on secondary index of a nested field always returns no results.
r.db('miner').tableCreate('tracks');r.db('miner').table('tracks').indexCreate('key');r.db('miner').table('tracks').indexCreate('identity.key');r.db('miner').table('tracks').insert({key: 2,identity: {key: '2'}});r.db('miner').table('tracks').getAll('2'{index: 'key'});// works (the result returns 1 document)r.db('miner').table('tracks').getAll('2'{index: 'identity.key'});// not working (no documents)
Is that expected? How can I test that my indexes are working?
The text was updated successfully, but these errors were encountered:
For 'indexName' you could use 'identity.key' but realize it is just a string identifier and has nothing to do with the layout of your document. 'identityKey' or anything else would be just as valid.
Hi @xpepermint this is expected. indexCreate('identity.key') looks for a top level document like {"identity.key": "foo"}, so it won't do what you want. Instead you can use a function to define the index:
Hi. I'm using
rethinkdb-2.0.2
. When runninggetAll
on secondary index of a nested field always returnsno results
.Is that expected? How can I test that my indexes are working?
The text was updated successfully, but these errors were encountered: