Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OrientDB: list all indexes

Tags:

orientdb

For the life of me I cannot figure out how to list all defined indexes within OrientDB. The following is the query syntax if you know the index name:

SELECT FROM INDEX:<index-name> WHERE key = <key>

How can I get a list of the existing index-names?

like image 266
ScottD Avatar asked Dec 28 '25 08:12

ScottD


1 Answers

You can use this query:

select expand(indexes) from #0:2

or:

select expand(indexes) from metadata:indexmanager

Hope it helps.

like image 167
Oleksandr Gubchenko Avatar answered Dec 30 '25 21:12

Oleksandr Gubchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!