Skip to content

Commit c605af0

Browse files
committed
fix boolean logic
1 parent 0a6dd4a commit c605af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ private DenseVectorIndexOptions defaultIndexOptions(boolean defaultInt8Hnsw, boo
371371
return null;
372372
}
373373

374-
boolean dimIsConfigured = dims == null || dims.isConfigured() == false;
374+
boolean dimIsConfigured = dims != null && dims.isConfigured();
375375
if (defaultBBQHnsw && dimIsConfigured == false) {
376376
// Delay selecting the default index options until dimensions are configured.
377377
// This applies only to indices that are eligible to use BBQ as the default,

0 commit comments

Comments
 (0)