File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed 
server/src/main/java/org/elasticsearch/index/codec/vectors Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,9 @@ public int size() {
405405        // this are small numbers so we run it wih all the centroids. 
406406        final  KMeansResult  kMeansResult  = new  HierarchicalKMeans (
407407            fieldInfo .getVectorDimension (),
408-             6 ,
409-             floatVectorValues . size () ,
410-             floatVectorValues . size () ,
408+             HierarchicalKMeans . MAX_ITERATIONS_DEFAULT ,
409+             HierarchicalKMeans . SAMPLES_PER_CLUSTER_DEFAULT ,
410+             HierarchicalKMeans . MAXK ,
411411            -1  // disable SOAR assignments 
412412        ).cluster (floatVectorValues , centroidsPerParentCluster );
413413        final  int [] centroidVectorCount  = new  int [kMeansResult .centroids ().length ];
Original file line number Diff line number Diff line change 1919 */ 
2020public  class  HierarchicalKMeans  {
2121
22-     static  final  int  MAXK  = 128 ;
23-     static  final  int  MAX_ITERATIONS_DEFAULT  = 6 ;
24-     static  final  int  SAMPLES_PER_CLUSTER_DEFAULT  = 64 ;
25-     static  final  float  DEFAULT_SOAR_LAMBDA  = 1.0f ;
22+     public   static  final  int  MAXK  = 128 ;
23+     public   static  final  int  MAX_ITERATIONS_DEFAULT  = 6 ;
24+     public   static  final  int  SAMPLES_PER_CLUSTER_DEFAULT  = 64 ;
25+     public   static  final  float  DEFAULT_SOAR_LAMBDA  = 1.0f ;
2626
2727    final  int  dimension ;
2828    final  int  maxIterations ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments