I don't like the idea of IndexWriter limiting field names, but I do like
the idea of un-deprecating that method, which appeared to have a trivial
implementation.  Try commenting on the issue of it's deprecations, which
has various watchers to get their attention.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley


On Wed, Jan 13, 2021 at 5:02 PM Oren Ovadia <[email protected]>
wrote:

> 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
>
>

Reply via email to