[ 
https://issues.apache.org/jira/browse/LUCENE-7875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Smiley updated LUCENE-7875:
---------------------------------
    Description: 
MultiFields.java has a bunch of static methods that provide a single 
LeafReader's view over a bunch of things.

This goes to MultiBits (which will become public):
 * {{Bits getLiveDocs(IndexReader reader)}}

These go to FieldInfos:
 * {{FieldInfos getMergedFieldInfos(IndexReader reader)}}
 * {{Collection<String> getIndexedFields(IndexReader reader)}}

These go to MultiTerms:
 * Terms getTerms(IndexReader r, String field)
 * {{PostingsEnum getTermPostingsEnum(IndexReader r, String field, BytesRef 
term)}} which is renamed a little

  was:
MultiFields.java has a bunch of static methods that provide a single 
LeafReader's view over a bunch of things.

These could perhaps go to ReaderUtil:
* {{Bits getLiveDocs(IndexReader reader)}}
* {{FieldInfos getMergedFieldInfos(IndexReader reader)}} (removing "Merged" in 
its name which seems inconsistent, or replace with "Multi")

These could perhaps go to MultiTerms:
* {{Collection<String> getIndexedFields(IndexReader reader)}}
* {{Terms getTerms(IndexReader r, String field)}}
* {{PostingsEnum getTermDocsEnum(IndexReader r, String field, BytesRef term)}}

Finally, the MultiFields instance itself, implementing {{Fields}} along with 
the static utility method {{Fields getFields(IndexReader reader)}} could 
perhaps remain until we can finally remove it (or move to a test classpath or 
something) when there is no more purpose for Fields.java.


> Rename or move most of MultiFields
> ----------------------------------
>
>                 Key: LUCENE-7875
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7875
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>             Fix For: master (8.0)
>
>         Attachments: LUCENE-7875.patch, LUCENE-7875.patch, LUCENE-7875.patch, 
> LUCENE-7875.patch
>
>
> MultiFields.java has a bunch of static methods that provide a single 
> LeafReader's view over a bunch of things.
> This goes to MultiBits (which will become public):
>  * {{Bits getLiveDocs(IndexReader reader)}}
> These go to FieldInfos:
>  * {{FieldInfos getMergedFieldInfos(IndexReader reader)}}
>  * {{Collection<String> getIndexedFields(IndexReader reader)}}
> These go to MultiTerms:
>  * Terms getTerms(IndexReader r, String field)
>  * {{PostingsEnum getTermPostingsEnum(IndexReader r, String field, BytesRef 
> term)}} which is renamed a little



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to