incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [6/7] git commit: Cleaned up some depreicated code.
Date Sun, 31 Mar 2013 15:10:58 GMT
Cleaned up some depreicated code.


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

Branch: refs/heads/0.1.5
Commit: c0a095333be02ef584f9a84c13fcea511a6538f6
Parents: fd7bead
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sun Mar 31 11:09:47 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sun Mar 31 11:09:47 2013 -0400

----------------------------------------------------------------------
 .../blur/manager/writer/TransactionRecorder.java   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c0a09533/src/blur-core/src/main/java/org/apache/blur/manager/writer/TransactionRecorder.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/main/java/org/apache/blur/manager/writer/TransactionRecorder.java
b/src/blur-core/src/main/java/org/apache/blur/manager/writer/TransactionRecorder.java
index fdf7f4f..f65dde4 100644
--- a/src/blur-core/src/main/java/org/apache/blur/manager/writer/TransactionRecorder.java
+++ b/src/blur-core/src/main/java/org/apache/blur/manager/writer/TransactionRecorder.java
@@ -47,9 +47,9 @@ import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.record.Utils;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
-import org.apache.lucene.document.Field.Index;
 import org.apache.lucene.document.Field.Store;
 import org.apache.lucene.document.FieldType;
+import org.apache.lucene.document.StringField;
 import org.apache.lucene.index.CorruptIndexException;
 import org.apache.lucene.index.Term;
 import org.apache.lucene.search.NRTManager.TrackingIndexWriter;
@@ -330,7 +330,7 @@ public class TransactionRecorder {
     for (int i = 0; i < size; i++) {
       Document document = convert(rowId, records.get(i), builder, analyzer);
       if (i == 0) {
-        document.add(new Field(BlurConstants.PRIME_DOC, BlurConstants.PRIME_DOC_VALUE, Store.NO,
Index.NOT_ANALYZED_NO_NORMS));
+        document.add(new StringField(BlurConstants.PRIME_DOC, BlurConstants.PRIME_DOC_VALUE,
Store.NO));
       }
       docs.add(document);
     }


Mime
View raw message