lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Search Score percentage, Should not be relative to the highest score
Date Wed, 05 Jan 2011 17:06:10 GMT
> Did not work,
> 
> I am using my own Similarity and the coord method is not
> called, because the 
> disableCoord variable is set to true from FuzzyQuery
> 
> 
>  public Similarity getSimilarity(Searcher searcher) {
>     Similarity result =
> super.getSimilarity(searcher);
>     if (disableCoord) {     
>                
>      // disable coord as
> requested
>       result = new
> SimilarityDelegator(result) {
>           public float coord(int
> overlap, int maxOverlap) {
>             return 1.0f;
>           }
>         };
>     }
>     return result;
>   }

What is the version of Lucene you are using?


      

---------------------------------------------------------------------
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