示例#1
0
 public Index<Relationship> createRelationshipIndex(String named) {
   return database.getIndexManager().forRelationships(named);
 }
示例#2
0
 public Index<Relationship> getRelationshipIndex(String indexName) {
   return database.getIndexManager().forRelationships(indexName);
 }
示例#3
0
 public Index<Relationship> createRelationshipFullTextIndex(String named) {
   return database
       .getIndexManager()
       .forRelationships(
           named, MapUtil.stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext"));
 }
示例#4
0
 public String[] getRelationshipIndexes() {
   return database.getIndexManager().relationshipIndexNames();
 }
示例#5
0
 public Index<Node> createNodeIndex(String named) {
   return database.getIndexManager().forNodes(named);
 }
示例#6
0
 public Index<Node> createNodeFullTextIndex(String named) {
   return database
       .getIndexManager()
       .forNodes(named, MapUtil.stringMap(IndexManager.PROVIDER, "lucene", "type", "fulltext"));
 }
示例#7
0
 public Index<Node> getNodeIndex(String indexName) {
   return database.getIndexManager().forNodes(indexName);
 }
示例#8
0
 public String[] getNodeIndexes() {
   return database.getIndexManager().nodeIndexNames();
 }