public function getIndex()
    {

        //If there isn't an index, make one and save it
        if (! $this->index)
        {
            $this->index = $this->entityManager->createIndex($this->class);
            $this->index->save();
        }

        return $this->index;
    }