Beispiel #1
0
        // Implement coord disabling.
        // Inherit javadoc.
        public override Similarity GetSimilarity(Searcher searcher)
        {
            Similarity result = base.GetSimilarity(searcher);

            if (disableCoord)
            {
                // disable coord as requested
                result = new AnonymousClassSimilarityDelegator(this, result);
            }
            return(result);
        }
 // Implement coord disabling.
 // Inherit javadoc.
 public override Similarity GetSimilarity(Searcher searcher)
 {
     Similarity result = base.GetSimilarity(searcher);
     if (disableCoord)
     {
         // disable coord as requested
         result = new AnonymousClassSimilarityDelegator(this, result);
     }
     return result;
 }