Neo4j - Is there a cypher query syntax to list (show) all indexes in DB?

前端 未结 6 1614
谎友^
谎友^ 2020-12-24 01:27

I\'m looking for something similar to the MySQL ( SHOW INDEXES ). I was able to get a list of indexes using py2neo in Python

graphDB = neo4j.GraphDatabaseS         


        
6条回答
  •  情深已故
    2020-12-24 02:19

    Well, in Cypher you cannot do that but there's a REST API request, which works.

    You can check it in Terminal.

    All indexes in the database:

    curl http://localhost:7474/db/data/schema/index/
    

    Indexes on a specific label:

    curl http://localhost:7474/db/data/schema/index/User
    

提交回复
热议问题