You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/03/27 22:13:49 UTC

svn commit: r1582477 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java

Author: rmuir
Date: Thu Mar 27 21:13:48 2014
New Revision: 1582477

URL: http://svn.apache.org/r1582477
Log:
remove bogus setting in test (see explanation on the mail list: this test cares about how many tokens it indexes because it expects there to be exactly 1 term

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java?rev=1582477&r1=1582476&r2=1582477&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestNorms.java Thu Mar 27 21:13:48 2014
@@ -76,7 +76,6 @@ public class TestNorms extends LuceneTes
   public void testCustomEncoder() throws Exception {
     Directory dir = newDirectory();
     MockAnalyzer analyzer = new MockAnalyzer(random());
-    analyzer.setMaxTokenLength(TestUtil.nextInt(random(), 1, IndexWriter.MAX_TERM_LENGTH));
 
     IndexWriterConfig config = newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer);
     config.setSimilarity(new CustomNormEncodingSimilarity());