You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Doug Cutting <cu...@apache.org> on 2004/01/26 19:12:41 UTC

Re: compile problems in sorting code (was "Re: arbitrary sorting" )

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