public Index<Relationship> createRelationshipIndex(String named) {
   return database.getIndexManager().forRelationships(named);
 }
 public Index<Relationship> getRelationshipIndex(String indexName) {
   return database.getIndexManager().forRelationships(indexName);
 }
 public Index<Relationship> createRelationshipFullTextIndex(String named) {
   return database
       .getIndexManager()
       .forRelationships(
           named, MapUtil.stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext"));
 }
 public String[] getRelationshipIndexes() {
   return database.getIndexManager().relationshipIndexNames();
 }
 public Index<Node> createNodeIndex(String named) {
   return database.getIndexManager().forNodes(named);
 }
 public Index<Node> createNodeFullTextIndex(String named) {
   return database
       .getIndexManager()
       .forNodes(named, MapUtil.stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext"));
 }
 public Index<Node> getNodeIndex(String indexName) {
   return database.getIndexManager().forNodes(indexName);
 }
 public String[] getNodeIndexes() {
   return database.getIndexManager().nodeIndexNames();
 }