mirror of https://github.com/apache/lucene.git
clear nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1436459 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f7615e6b35
commit
ab0e1e76e0
|
@ -40,8 +40,7 @@ import org.apache.lucene.util._TestUtil;
|
||||||
* Test that norms info is preserved during index life - including
|
* Test that norms info is preserved during index life - including
|
||||||
* separate norms, addDocument, addIndexes, forceMerge.
|
* separate norms, addDocument, addIndexes, forceMerge.
|
||||||
*/
|
*/
|
||||||
// nocommit put SimpleText back in suppress list:
|
@SuppressCodecs({ "Memory", "Direct", "SimpleText" })
|
||||||
@SuppressCodecs({ "Memory", "Direct" })
|
|
||||||
@Slow
|
@Slow
|
||||||
public class TestNorms extends LuceneTestCase {
|
public class TestNorms extends LuceneTestCase {
|
||||||
final String byteTestField = "normsTestByte";
|
final String byteTestField = "normsTestByte";
|
||||||
|
|
|
@ -254,8 +254,7 @@ public class TestOmitTf extends LuceneTestCase {
|
||||||
newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).
|
newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).
|
||||||
setMaxBufferedDocs(2).
|
setMaxBufferedDocs(2).
|
||||||
setSimilarity(new SimpleSimilarity()).
|
setSimilarity(new SimpleSimilarity()).
|
||||||
setMergePolicy(newLogMergePolicy(2)).
|
setMergePolicy(newLogMergePolicy(2))
|
||||||
setMergeScheduler(new SerialMergeScheduler()) // nocommit
|
|
||||||
);
|
);
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder(265);
|
StringBuilder sb = new StringBuilder(265);
|
||||||
|
|
|
@ -162,8 +162,7 @@ public class TestBooleanOr extends LuceneTestCase {
|
||||||
|
|
||||||
public void testBooleanScorerMax() throws IOException {
|
public void testBooleanScorerMax() throws IOException {
|
||||||
Directory dir = newDirectory();
|
Directory dir = newDirectory();
|
||||||
// nocommit remove SMS:
|
RandomIndexWriter riw = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())));
|
||||||
RandomIndexWriter riw = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setMergeScheduler(new SerialMergeScheduler()));
|
|
||||||
|
|
||||||
int docCount = atLeast(10000);
|
int docCount = atLeast(10000);
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,6 @@ import org.apache.lucene.util.LuceneTestCase;
|
||||||
* In the example, a docvalues field is used as a per-document boost (separate from the norm)
|
* In the example, a docvalues field is used as a per-document boost (separate from the norm)
|
||||||
* @lucene.experimental
|
* @lucene.experimental
|
||||||
*/
|
*/
|
||||||
// nocommit Lucene40 doesn't yet impl SimpleDV:
|
|
||||||
@SuppressCodecs("Lucene40")
|
|
||||||
public class TestDocValuesScoring extends LuceneTestCase {
|
public class TestDocValuesScoring extends LuceneTestCase {
|
||||||
private static final float SCORE_EPSILON = 0.001f; /* for comparing floats */
|
private static final float SCORE_EPSILON = 0.001f; /* for comparing floats */
|
||||||
|
|
||||||
|
|
|
@ -74,8 +74,6 @@ import org.junit.BeforeClass;
|
||||||
* @since lucene 1.4
|
* @since lucene 1.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// nocommit unsuppress this once Lucene40 impls DV 2.0:
|
|
||||||
@SuppressCodecs({"Lucene40"})
|
|
||||||
public class TestSort extends LuceneTestCase {
|
public class TestSort extends LuceneTestCase {
|
||||||
private static int NUM_STRINGS;
|
private static int NUM_STRINGS;
|
||||||
private IndexSearcher full;
|
private IndexSearcher full;
|
||||||
|
@ -200,10 +198,7 @@ public class TestSort extends LuceneTestCase {
|
||||||
|
|
||||||
IndexReader reader = writer.getReader();
|
IndexReader reader = writer.getReader();
|
||||||
writer.close ();
|
writer.close ();
|
||||||
// nocommit back to newSearcher(true)? problem is this
|
IndexSearcher s = newSearcher(reader);
|
||||||
// sometimes uses slow reader wrapper which does not
|
|
||||||
// provide DV 2.0
|
|
||||||
IndexSearcher s = newSearcher(reader, false);
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,10 +272,7 @@ public class TestSort extends LuceneTestCase {
|
||||||
//System.out.println(writer.getSegmentCount());
|
//System.out.println(writer.getSegmentCount());
|
||||||
writer.close();
|
writer.close();
|
||||||
IndexReader reader = DirectoryReader.open(indexStore);
|
IndexReader reader = DirectoryReader.open(indexStore);
|
||||||
// nocommit back to newSearcher(true)? problem is this
|
IndexSearcher searcher = newSearcher(reader);
|
||||||
// sometimes uses slow reader wrapper which does not
|
|
||||||
// provide DV 2.0
|
|
||||||
IndexSearcher searcher = newSearcher(reader, false);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for(int docID=0;docID<reader.maxDoc();docID++) {
|
for(int docID=0;docID<reader.maxDoc();docID++) {
|
||||||
|
|
Loading…
Reference in New Issue