I want to count the relationships by type in Neo4j using neo4j native java Api (not execute Cyper statement)
I create a full-text index in relationships by calling procedure
CALL db.index.fulltext.createRelationshipIndex(
"dependsTypeRelationshipIndex",
["DEPENDS"], ["isoptional"],
{ analyzer: "standard", eventually_consistent: "true" })
The index has been created suffcessfully :
Also, there are existing correspondingly relationships :
However, when I using neo4j native api, it does not work.
Is there any config I need to set, or method to count the relationships by type without using Cypher?