incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [3/5] git commit: FairSimilarity should be the default.
Date Wed, 11 Dec 2013 18:46:21 GMT
FairSimilarity should be the default.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/3463ff07
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/3463ff07
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/3463ff07

Branch: refs/heads/apache-blur-0.2
Commit: 3463ff07fcb5fa9b4be6f174290934e8d4b356bf
Parents: 8c2110b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Dec 11 13:13:41 2013 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Dec 11 13:13:41 2013 -0500

----------------------------------------------------------------------
 blur-core/src/main/java/org/apache/blur/server/TableContext.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/3463ff07/blur-core/src/main/java/org/apache/blur/server/TableContext.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/server/TableContext.java b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
index d0d54e6..91e21bb 100644
--- a/blur-core/src/main/java/org/apache/blur/server/TableContext.java
+++ b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
@@ -38,6 +38,7 @@ import org.apache.blur.analysis.HdfsFieldManager;
 import org.apache.blur.analysis.NoStopWordStandardAnalyzer;
 import org.apache.blur.log.Log;
 import org.apache.blur.log.LogFactory;
+import org.apache.blur.lucene.search.FairSimilarity;
 import org.apache.blur.thrift.generated.ScoreType;
 import org.apache.blur.thrift.generated.TableDescriptor;
 import org.apache.hadoop.conf.Configuration;
@@ -144,7 +145,7 @@ public class TableContext {
         KeepOnlyLastCommitDeletionPolicy.class);
     tableContext.indexDeletionPolicy = (IndexDeletionPolicy) configure(ReflectionUtils.newInstance(c1,
configuration),
         tableContext);
-    Class<?> c2 = configuration.getClass(BLUR_SHARD_INDEX_SIMILARITY, DefaultSimilarity.class);
+    Class<?> c2 = configuration.getClass(BLUR_SHARD_INDEX_SIMILARITY, FairSimilarity.class);
     tableContext.similarity = (Similarity) configure(ReflectionUtils.newInstance(c2, configuration),
tableContext);
 
     cache.put(name, tableContext);


Mime
View raw message