2

There is data type concept for secondary index in Riak, I am not sure why we need this data type? Because the index looks just like kind of categories for stored data object.

I did not find any document for this.

2 Answers2

2

2i (secondary indexes) allows you to reference an object in Riak via ... an index. Meaning something other than your key. You can also perform range queries using a secondary index.

See: How to query nested keys in Riak?

And our documentation at: http://wiki.basho.com/Secondary-Indexes.html

Community
  • 1
  • 1
Brian Roach
  • 76,169
  • 12
  • 136
  • 161
0

More specifically, Secondary Index objects allow you to model one-to-one, one-to-many and many-to-many relationships in Riak, in a fairly efficient manner.

Take a look at the following discussions about data modeling relationships in Riak, to help shed light on secondary indexes:

Community
  • 1
  • 1
Dmitri Zagidulin
  • 1,117
  • 9
  • 23