File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
server/src/main/java/org/elasticsearch/search/vectors Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ public RescoreVectorBuilder(StreamInput in) throws IOException {
5959    public  void  writeTo (StreamOutput  out ) throws  IOException  {
6060        // We don't want to serialize a `0` oversample to a node that doesn't know what to do with it. 
6161        if  (oversample  == NO_OVERSAMPLE 
62-             && out .getTransportVersion ().before (RESCORE_VECTOR_ALLOW_ZERO )
63-             &&  (out .getTransportVersion ().isPatchFrom (RESCORE_VECTOR_ALLOW_ZERO_BACKPORT_8_19 ) == false )) {
62+             && ( out .getTransportVersion ().before (RESCORE_VECTOR_ALLOW_ZERO )
63+                 ||  (out .getTransportVersion ().isPatchFrom (RESCORE_VECTOR_ALLOW_ZERO_BACKPORT_8_19 ) == false ) )) {
6464            throw  new  ElasticsearchStatusException (
6565                "[rescore_vector] does not support a 0 for [" 
6666                    + OVERSAMPLE_FIELD .getPreferredName ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments