Tarantool CE/EE Documentation portal logo
Support
Updated at July 17, 2026   02:08 PM

space_object.index

space_object

index

A container for all defined indexes. There is a Lua object of type box.index with methods to search tuples and iterate over them in predefined order.

To reset, use box.stat.reset().

Return type

table

Example:

-- checking the number of indexes for space 'tester'tarantool> local counter=0; for i=0,#box.space.tester.index do  if box.space.tester.index[i]~=nil then counter=counter+1 end  end; print(counter)1---...-- checking the type of index 'primary'tarantool> box.space.tester.index.primary.type---- TREE...