use of org.neo4j.index.lucene.LuceneTimeline in project neo4j by neo4j.
the class TestTimeline method nodeTimeline.
private TimelineIndex<PropertyContainer> nodeTimeline() {
try (Transaction tx = db.beginTx()) {
Index<Node> nodeIndex = db.index().forNodes("timeline");
tx.success();
return new LuceneTimeline(db, nodeIndex);
}
}
use of org.neo4j.index.lucene.LuceneTimeline in project neo4j by neo4j.
the class TestTimeline method relationshipTimeline.
private TimelineIndex<PropertyContainer> relationshipTimeline() {
try (Transaction tx = db.beginTx()) {
RelationshipIndex relationshipIndex = db.index().forRelationships("timeline");
tx.success();
return new LuceneTimeline(db, relationshipIndex);
}
}
Aggregations