Paradox/toolbox/CollectionManager.php
public function listIndices($collection, $includeInfo = false)
    {

        if (isset($this->_indexInfoCache[$collection])) {
            return $this->_indexInfoCache[$collection];
        }

        try {
            $result = $this->_toolbox->getCollectionHandler()->getIndexes($collection);
            $this->_indexInfoCache[$collection] = $result['identifiers'];

            if ($includeInfo) {
                return $this->_indexInfoCache[$collection];
            } else {
                return array_keys($this->_indexInfoCache[$collection]);
            }

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function listIndices($collection, $includeInfo = false)
    {

        if (isset($this->_indexInfoCache[$collection])) {
            return $this->_indexInfoCache[$collection];
        }

        try {
            $result = $this->_toolbox->getCollectionHandler()->getIndexes($collection);
            $this->_indexInfoCache[$collection] = $result['identifiers'];

            if ($includeInfo) {
                return $this->_indexInfoCache[$collection];
            } else {
                return array_keys($this->_indexInfoCache[$collection]);
            }

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
List the indices on a collection.
@param  string                     $collection  The name of the collection.
@param  boolean                    $includeInfo Whether we want information on each index. If false, only an array of index ids will be returned.
@throws CollectionManagerException
@return array