- LUCENE-657: Made FuzzyQuery non-final and the inner ScoreTerm class, protected.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@467853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2006-10-26 03:49:58 +00:00
parent e1b804ff9a
commit 1eb10aba44
2 changed files with 6 additions and 3 deletions

View File

@ -85,6 +85,9 @@ API Changes
for that Directory.
(Michael McCandless, Jeff Patterson via Yonik Seeley)
9. LUCENE-657: Made FuzzyQuery non-final and inner ScoreTerm protected.
(Steven Parkes via Otis Gospodnetic)
Bug fixes
1. Fixed the web application demo (built with "ant war-demo") which

View File

@ -26,7 +26,7 @@ import java.io.IOException;
/** Implements the fuzzy search query. The similiarity measurement
* is based on the Levenshtein (edit distance) algorithm.
*/
public final class FuzzyQuery extends MultiTermQuery {
public class FuzzyQuery extends MultiTermQuery {
public final static float defaultMinSimilarity = 0.5f;
public final static int defaultPrefixLength = 0;
@ -149,7 +149,7 @@ public final class FuzzyQuery extends MultiTermQuery {
return buffer.toString();
}
private static class ScoreTerm{
protected static class ScoreTerm {
public Term term;
public float score;
@ -159,7 +159,7 @@ public final class FuzzyQuery extends MultiTermQuery {
}
}
private static class ScoreTermQueue extends PriorityQueue {
protected static class ScoreTermQueue extends PriorityQueue {
public ScoreTermQueue(int size){
initialize(size);