@Test
public void shouldFindRelationshipByLookup() throws Exception
{
try ( RelationshipExplicitIndexCursor cursor = cursors.allocateRelationshipExplicitIndexCursor(); )
{
MutableLongSet edges = new LongHashSet();
indexRead.relationshipExplicitIndexLookup(
cursor,
"rels",
"alpha",
"betting on the wrong string" ,
-1,
-1 );
assertFoundRelationships( cursor, 1, edges );
indexRead.relationshipExplicitIndexLookup( cursor, "rels", "bar", "not that", -1, -1 );
assertFoundRelationships( cursor, 0, edges );
}
}