Apache Lucene 8.4.1 How to get indexed fields and term list?
问题 I'am new to Apache Lucene, I'm using Apache Lucene 8.4.1, I can do Lucene Indexing and Searching but don't know how to read and list index / print index using java. How to get indexed fields and term list ? . I was able to get Fileds list by using following function grabbed from Other Stackoverflow article. public static String[] getFieldNames(IndexReader reader) { List<String> fieldNames = new ArrayList<String>(); //For a simple reader over only one index, reader.leaves() should only return