You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Busch (JIRA)" <ji...@apache.org> on 2007/12/06 10:08:43 UTC

[jira] Resolved: (LUCENE-1064) Make TopDocs constructor public

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

Michael Busch resolved LUCENE-1064.
-----------------------------------

    Resolution: Fixed

Committed. Thanks, Shai!

> Make TopDocs constructor public
> -------------------------------
>
>                 Key: LUCENE-1064
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1064
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.2
>         Environment: All
>            Reporter: Shai Erera
>            Assignee: Michael Busch
>         Attachments: TopDocs-patch
>
>
> TopDocs constructor is package visible. This prevents instantiating it from outside this package. For example, I wrote a HitColletor that couldn't extend directly from TopDocCollector. I need to create a new TopDocs instance, however since the c'tor is package visible, I can't do that.
> For now, I completely duplicated the code, but I hope you'll fix it soon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: [jira] Resolved: (LUCENE-1064) Make TopDocs constructor public

Posted by Shai Erera <se...@gmail.com>.
Thanks a lot !

On Dec 6, 2007 11:08 AM, Michael Busch (JIRA) <ji...@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/LUCENE-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Michael Busch resolved LUCENE-1064.
> -----------------------------------
>
>    Resolution: Fixed
>
> Committed. Thanks, Shai!
>
> > Make TopDocs constructor public
> > -------------------------------
> >
> >                 Key: LUCENE-1064
> >                 URL: https://issues.apache.org/jira/browse/LUCENE-1064
> >             Project: Lucene - Java
> >          Issue Type: Improvement
> >          Components: Search
> >    Affects Versions: 2.2
> >         Environment: All
> >            Reporter: Shai Erera
> >            Assignee: Michael Busch
> >         Attachments: TopDocs-patch
> >
> >
> > TopDocs constructor is package visible. This prevents instantiating it
> from outside this package. For example, I wrote a HitColletor that couldn't
> extend directly from TopDocCollector. I need to create a new TopDocs
> instance, however since the c'tor is package visible, I can't do that.
> > For now, I completely duplicated the code, but I hope you'll fix it
> soon.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>


-- 
Regards,

Shai Erera