File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed 
server/src/main/java/org/opensearch Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ public String typeName() {
237237            return  CONTENT_TYPE ;
238238        }
239239
240-         public  static  InetAddress  parse (Object  value ) {
240+         private  static  InetAddress  parse (Object  value ) {
241241            if  (value  instanceof  InetAddress ) {
242242                return  (InetAddress ) value ;
243243            } else  {
Original file line number Diff line number Diff line change 4747 */ 
4848public  class  StarTreeQueryHelper  {
4949
50-     private  static  StarTreeValues  starTreeValues ;
51- 
5250    /** 
5351     * Checks if the search context can be supported by star-tree 
5452     */ 
@@ -63,10 +61,9 @@ public static CompositeIndexFieldInfo getSupportedStarTree(QueryShardContext con
6361
6462    public  static  StarTreeValues  getStarTreeValues (LeafReaderContext  context , CompositeIndexFieldInfo  starTree ) throws  IOException  {
6563        SegmentReader  reader  = Lucene .segmentReader (context .reader ());
66-         if  (!(reader .getDocValuesReader () instanceof  CompositeIndexReader )) {
64+         if  (!(reader .getDocValuesReader () instanceof  CompositeIndexReader   starTreeDocValuesReader )) {
6765            return  null ;
6866        }
69-         CompositeIndexReader  starTreeDocValuesReader  = (CompositeIndexReader ) reader .getDocValuesReader ();
7067        return  (StarTreeValues ) starTreeDocValuesReader .getCompositeIndexValues (starTree );
7168    }
7269
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments