lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: compile problems in sorting code (was "Re: arbitrary sorting" )
Date Mon, 26 Jan 2004 18:12:41 GMT
The scorer API has changed in CVS.  Your patch is for 1.3-final. 
Patches should be against the CVS head.  Could that be the problem?

Doug

Tim Jones wrote:
> Hmmm.  Actually, I copied that code directly out of 
> org.apache.lucene.search.IndexSearcher#search() ... 
> 
> The given method is supposed to map to the abstract one in Scorer:
> 
>   public abstract void score (HitCollector hc, int maxDoc) 
>   throws IOException;
> 
> This seems to compile the classes:
> 
>   javac -classpath .;lucene-1.3-final.jar \ 
>         org/apache/lucene/search/SortedIndexSearcher.java
> 
> however, maybe I am using a different compiler?
> 
> Tim
>  
> 
> Otis said:
> 
>>However, I could not compile your code:
>>
>>
>>        [javac] Found 1 semantic error compiling
>>"/home/otis/cvs-repo/jakarta-lucene/src/java/org/apache/lucene
> 
> /search/SortedIndexSearcher.java":
> 
>> 
>>    [javac]                         <-------------
>>    [javac]    182.                 scorer.score (
>>    [javac]    . . .
>>    [javac]    191.                         }, reader.maxDoc());
>>    [javac]         ------------------------------------------>
>>    [javac] *** Semantic Error: No applicable overload for the method
>>named "score" was found in type "org.apache.lucene.search.Scorer".
>>Perhaps you wanted the overloaded version "void
>>score(org.apache.lucene.search.HitCollector $1) throws
>>java.io.IOException;" instead?
> 
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> 


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


Mime
View raw message