mirror of https://github.com/apache/lucene.git
SOLR-6295: Fix child filter query creation to never match parent docs in SolrExampleTests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1633679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7fa2cea91c
commit
232c2ec167
|
@ -352,6 +352,9 @@ Other Changes
|
|||
* SOLR-6641: SystemInfoHandler should include the zkHost the node is using (when running in solrcloud mode)
|
||||
(Timothy Potter)
|
||||
|
||||
* SOLR-6295: Fix child filter query creation to never match parent docs in SolrExampleTests.
|
||||
(Varun Thacker, Mikhail Khludnev via shalin)
|
||||
|
||||
================== 4.10.1 ==================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -1354,7 +1354,7 @@ abstract public class SolrExampleTests extends SolrExampleTestsBase
|
|||
// verifications are driven only by the results
|
||||
{
|
||||
int parentLevel = TestUtil.nextInt(random(), 0, maxDepth-1);
|
||||
int kidLevelMin = TestUtil.nextInt(random(), parentLevel, maxDepth);
|
||||
int kidLevelMin = TestUtil.nextInt(random(), parentLevel + 1, maxDepth);
|
||||
int kidLevelMax = TestUtil.nextInt(random(), kidLevelMin, maxDepth);
|
||||
|
||||
String parentFilter = "level_i:" + parentLevel;
|
||||
|
@ -1478,7 +1478,7 @@ abstract public class SolrExampleTests extends SolrExampleTestsBase
|
|||
private int idCounter = 0;
|
||||
/** used by genNestedDocuments */
|
||||
private static final String[] names
|
||||
= new String[] { "java","pyhon","scala","ruby","clojure" };
|
||||
= new String[] { "java","python","scala","ruby","clojure" };
|
||||
|
||||
/**
|
||||
* recursive method for generating a document, which may also have child documents;
|
||||
|
|
Loading…
Reference in New Issue