lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Panchenko <alex+n...@olmisoft.com>
Subject Patch to increse visibility of some classes/methods
Date Wed, 01 Dec 2004 06:20:41 GMT
Hello !

This patch increases visibility from protected/package level to public
of the following:

1) public Weight createWeight(Searcher searcher) in
org.apache.lucene.search.Query and its subclasess.

2) public boolean score(HitCollector hc, int max) throws IOException
in org.apache.lucene.search.Scorer and its subclasess.

3) org.apache.lucene.search.ConjunctionScorer and its "void add(Scorer
scorer)" method.


I am building a Query implementation which should match documents that
are matched by specified number of subqueries. It works very much the
same as BooleanQuery, but checks the number of matched subqueries
which should be greater than or equal to the specified value.

The patch is needed to allow access to these classes/members from
other packages, not just org.apache.lucene.search.

I will email the final version of my Query implementation to the list,
so in the future versions probably it will be included in
org.apache.lucene.search, but it is in separate package for now.

-- 
Best regards,
 Alexey                          mailto:alex+news@olmisoft.com

Mime
View raw message