lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5690) expose sub-Terms from MultiTerms
Date Tue, 20 May 2014 18:40:38 GMT


Uwe Schindler commented on LUCENE-5690:

bq. MultiTermsEnum and MultiDocsEnum both expose their subs

I don't see this in the code of MultiTermsEnum. Both have the arrays private and MultiTermsEnum
has no getter (at least in trunk). MultiDocsEnum has a getter (not sure why). In MultiTermsEnum
there is one public getter, but this one returns a package private class, so unuseable to
the user (this is a bug) - should be removed.

This patch is fine if you make the methods return List<Terms> and List<ReaderSlice>,
both with {{Collections.unmodifiableList(Arrays.asList(...))}}. But ReaderSlice is also a
more or less "private" class (its just public for cross-package access).

What's the reason to have those public at all?

> expose sub-Terms from MultiTerms
> --------------------------------
>                 Key: LUCENE-5690
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>         Attachments: LUCENE-5690.patch
> MultiTermsEnum and MultiDocsEnum both expose their subs.  It would be useful to do the
same for MultiTerms.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message