public function createIndex($className)
    {
        //Get meta info for the class
        $meta = $this->metaRepository->fromClass($className);

        //Create a node index
        if($meta instanceof NodeMeta)
        {
            return new NodeIndex($this->client, $className);
        }

        else
        {
            return new RelationshipIndex($this->client, $className);
        }

    }