File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4040
4141import  java .io .IOException ;
4242import  java .util .ArrayList ;
43+ import  java .util .Collection ;
4344import  java .util .HashMap ;
4445import  java .util .List ;
4546import  java .util .Map ;
@@ -452,7 +453,9 @@ public DocIdSetIterator competitiveIterator() throws IOException {
452453            if  (usesCompetitiveIterator ) {
453454                // A DocIdSetIterator view of the filterIterators heap 
454455                assert  filterIterators  != null ;
455-                 return  new  DisjunctionDISIApproximation (filterIterators );
456+                 Collection <DisiWrapper > actualList  = new  ArrayList <>();
457+                 filterIterators .iterator ().forEachRemaining (actualList ::add );
458+                 return  DisjunctionDISIApproximation .of (actualList , Long .MAX_VALUE );
456459            }
457460            return  null ;
458461        }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments