mirror of https://github.com/apache/lucene.git
LUCENE-7383: fix test, only use BoostQuery once
This commit is contained in:
parent
f9c9470641
commit
2e0b2f5e37
|
@ -959,10 +959,9 @@ public class FieldQueryTest extends AbstractTestCase {
|
|||
initBoost();
|
||||
Query childQuery = tq(boost, "a");
|
||||
Query query = new ToParentBlockJoinQuery(childQuery, new QueryBitSetProducer(new MatchAllDocsQuery()), ScoreMode.None);
|
||||
query = new BoostQuery(query, boost );
|
||||
FieldQuery fq = new FieldQuery(query, true, true );
|
||||
Set<Query> flatQueries = new HashSet<>();
|
||||
fq.flatten(query, reader, flatQueries, 1f );
|
||||
fq.flatten(query, reader, flatQueries, 1f);
|
||||
assertCollectionQueries(flatQueries, tq(boost, "a"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue