lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheolgoo Kang <app...@gmail.com>
Subject Why is the constructor of TopFieldDocs not public?
Date Tue, 24 Feb 2009 02:15:20 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message