mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
fix test bug
This commit is contained in:
parent
a60723b007
commit
bc67205bdf
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ public class PercolatorQueryTests extends ESTestCase {
|
|||
|
||||
indexWriter.close();
|
||||
directoryReader = DirectoryReader.open(directory);
|
||||
IndexSearcher shardSearcher = newSearcher(directoryReader);
|
||||
// don't use newSearcher, which randomizes similarity. if it gets classic sim, the test eats it,
|
||||
// as the score becomes 1 due to querynorm.
|
||||
IndexSearcher shardSearcher = new IndexSearcher(directoryReader);
|
||||
|
||||
MemoryIndex memoryIndex = new MemoryIndex();
|
||||
memoryIndex.addField("field", "the quick brown fox jumps over the lazy dog", new WhitespaceAnalyzer());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue