mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
move default similarity declaration back to top
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
786457c0e3
commit
8d1e2ddf0e
@ -527,6 +527,10 @@ import java.util.IdentityHashMap;
|
||||
*/
|
||||
public abstract class Similarity implements Serializable {
|
||||
|
||||
/**
|
||||
* The Similarity implementation used by default.
|
||||
**/
|
||||
private static Similarity defaultImpl = new DefaultSimilarity();
|
||||
public static final int NO_DOC_ID_PROVIDED = -1;
|
||||
|
||||
/** Set the default Similarity implementation used by indexing and search
|
||||
@ -833,9 +837,4 @@ public abstract class Similarity implements Serializable {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** The Similarity implementation used by default.
|
||||
* TODO: move back to top when old API is removed!
|
||||
**/
|
||||
private static Similarity defaultImpl = new DefaultSimilarity();
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user