incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [29/47] git commit: Small fix that was missed.
Date Mon, 03 Sep 2012 00:32:20 GMT
Small fix that was missed.


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

Branch: refs/heads/master
Commit: 7b02958a3eff3d879fc0c1c26b05e6d8fd581fbf
Parents: 4cb2f33
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Aug 22 08:02:05 2012 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Aug 22 08:02:05 2012 -0400

----------------------------------------------------------------------
 .../apache/lucene/index/WarmUpByFieldBounds.java   |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7b02958a/src/blur-store/src/main/java/org/apache/lucene/index/WarmUpByFieldBounds.java
----------------------------------------------------------------------
diff --git a/src/blur-store/src/main/java/org/apache/lucene/index/WarmUpByFieldBounds.java
b/src/blur-store/src/main/java/org/apache/lucene/index/WarmUpByFieldBounds.java
index 64e1b52..ba09662 100644
--- a/src/blur-store/src/main/java/org/apache/lucene/index/WarmUpByFieldBounds.java
+++ b/src/blur-store/src/main/java/org/apache/lucene/index/WarmUpByFieldBounds.java
@@ -18,6 +18,7 @@ import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.IndexInput;
 import org.apache.lucene.store.LockObtainFailedException;
 import org.apache.lucene.store.RAMDirectory;
+import org.apache.lucene.util.ReaderUtil;
 import org.apache.lucene.util.Version;
 
 import com.nearinfinity.blur.log.Log;
@@ -36,7 +37,7 @@ public class WarmUpByFieldBounds {
         // System.out.println(name + " " + start + " " + end + " " +
         // startPosition + " " + endPosition + " " + totalBytesRead + " " +
         // nanoTime + " " + isClosed);
-        
+
         double bytesPerNano = totalBytesRead / (double) nanoTime;
         double mBytesPerNano = bytesPerNano / 1024 / 1024;
         double mBytesPerSecond = mBytesPerNano * 1000000000.0;
@@ -75,7 +76,7 @@ public class WarmUpByFieldBounds {
   private static final Log LOG = LogFactory.getLog(WarmUpByFieldBounds.class);
 
   public void warmUpByField(AtomicBoolean isClosed, Term term, IndexReader reader, WarmUpByFieldBoundsStatus
status) throws IOException {
-    FieldInfos fieldInfos = reader.getFieldInfos();
+    FieldInfos fieldInfos = ReaderUtil.getMergedFieldInfos(reader);
     Collection<String> fieldNames = new HashSet<String>();
     for (FieldInfo info : fieldInfos) {
       if (info.isIndexed) {


Mime
View raw message