Hi All, I work on Lucene at MongoDB.
I would like to limit the amount of fields in an index to prevent tenants from causing a mapping explosion. Since IndexWriter.getFieldNames has been deprecated <https://issues.apache.org/jira/browse/LUCENE-8909>, there is no way to do this without using a reader (which comes with a set of problems regarding flush/commit rates). Would love to add to Lucene the ability to have IndexWriters limiting the number of fields. Curious to hear your thoughts. Thanks, Oren
