Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-3606: merge trunk to r1211182

Robert Muiraf5cd523d490
diff --cc lucene/src/java/org/apache/lucene/index/IndexReader.java
index cc750e1a0ed,23a79b2afbe..21a8fb42be0
--- a/lucene/src/java/org/apache/lucene/index/IndexReader.java
+++ b/lucene/src/java/org/apache/lucene/index/IndexReader.java
@@@ -31,6 -31,8 +31,7 @@@ import org.apache.lucene.document.Docum
import org.apache.lucene.index.codecs.PerDocValues;
import org.apache.lucene.index.values.IndexDocValues;
import org.apache.lucene.search.FieldCache; // javadocs
+ import org.apache.lucene.search.SearcherManager; // javadocs
-import org.apache.lucene.search.similarities.Similarity;
import org.apache.lucene.store.*;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.Bits;
@@@ -372,9 -485,13 +373,8 @@@ public abstract class IndexReader imple
* for doing so); if a new reader is returned you also
* must eventually close it. Be sure to never close a
* reader while other threads are still using it; see
- * <code>SearcherManager</code> in
- * <code>contrib/misc</code> to simplify managing this.
+ * {@link SearcherManager} to simplify managing this.
*
- * <p>If a new reader is returned, it's safe to make changes
- * (deletions, norms) with it. All shared mutable state
- * with the old reader uses "copy on write" semantics to
- * ensure the changes are not seen by other readers.
- *
* @throws CorruptIndexException if the index is corrupt
* @throws IOException if there is a low-level IO error
* @return null if there are no changes; else, a new
diff --cc lucene/src/java/org/apache/lucene/index/codecs/appending/AppendingCodec.java
index 255a5099073,1e3112e49c3..a821acdbd97
--- a/lucene/src/java/org/apache/lucene/index/codecs/appending/AppendingCodec.java
+++ b/lucene/src/java/org/apache/lucene/index/codecs/appending/AppendingCodec.java
@@@ -80,9 -77,4 +80,9 @@@ public class AppendingCodec extends Cod
public FieldInfosFormat fieldInfosFormat() {
return fieldInfos;
}
-
++
+ @Override
+ public NormsFormat normsFormat() {
+ return norms;
+ }
}