Good question. Are you hitting any other package-private issues in
creating your own searcher? (Seems likely you may).
TopDocs, in contrast, has a public ctor.
If there are no objections I'll switch it to public...
Mike
Cheolgoo Kang wrote:
I'm subclassing MultiSearcher and writing a customized searcher on
my own.
The search( Weight, Filter, int, Sort ) method on MultiSearcher should
return TopFieldDocs, but I cannot instantiate one cause TopFieldDocs
constructor is declared as package-private. (TopFieldDocs itself is
public!)
Is there any reason the constructor of TopFieldDocs has no modifier
declaration?
- Cheolgoo Kang
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org