Map<String, Object> props = new HashMap<String, Object>();
props.put("name", "test");
Relationship rel = this.restAPI.createRelationship(refNode, node, Type.TEST, props );
this.restAPI.createIndex(Relationship.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);
IndexManager index = getRestGraphDb().index();
assertTrue(index.existsForRelationships("indexName"));
}
@Test
public void testIndexForRelationships(){
RestIndexManager index = (RestIndexManager) getRestGraphDb().index();