According to the Orient-DB-Documentation on Indexing it should (generally) be possible to query the keys of an index via
SELECT key from INDEX:
However, it appears (to me) that this is not possible for full-text indexes:
SELECT key from INDEX:aFullTextIndex
throws an error
com.orientechnologies.orient.core.exception.OCommandExecutionException: Index afulltextindex does not allow iteration without a condition DB name=“DB_Name”.
[OrientDB v 3.0.10]
Does anyone know why? And what could be a possible solution/workaround to query all keys of a fulltext-based index?
Any input is appreciated.
Many thanks, Severin Waldis
Appendix: What I want to do
The OrientDB-Documentation gives the following example on how Lucene-Fulltext-Engine works (see: https://orientdb.org/docs/3.0.x/indexing/Full-Text-Index.html#how-lucenes-works):
Example Text Corpus:
1: My sister is coming for the holidays.
2: The holidays are a chance for family meeting.
3: Who did your sister meet?
4: It takes an hour to make fudge.
5: My sister makes awesome fudge.
A posting list for each word is created:
my --> 1,5
fudge --> 4,5
sister --> 1,3,5
What I want to do now is to retrieve “my,fudge, sister,…”, i.e. the keys of the posting lists, which Lucene created based on the text corpus.