David Smiley created LUCENE-8511: ------------------------------------ Summary: MultiFields.getIndexedFields can be optimized to not use getMergedFieldInfos Key: LUCENE-8511 URL: https://issues.apache.org/jira/browse/LUCENE-8511 Project: Lucene - Core Issue Type: Improvement Reporter: David Smiley
MultiFields.getIndexedFields calls getMergedFieldInfos. But getMergedFieldInfos is kinda heavy, doing all sorts of stuff that getIndexedFields doesn't care about. It can simply loop the leaf readers and collect the results into a Set. Java 8 streams should make easy work of this. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org