@@ -2065,7 +2065,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
2065
2065
builder .field ("m" , m );
2066
2066
builder .field ("ef_construction" , efConstruction );
2067
2067
if (directRawVectorReads ) {
2068
- builder .field ("disable_offheap_cache_rescoring " , true );
2068
+ builder .field ("direct_raw_vector_reads " , true );
2069
2069
}
2070
2070
if (rescoreVector != null ) {
2071
2071
rescoreVector .toXContent (builder , params );
@@ -2148,13 +2148,13 @@ public boolean validateDimension(int dim, boolean throwOnError) {
2148
2148
static class BBQIVFIndexOptions extends QuantizedIndexOptions {
2149
2149
final int clusterSize ;
2150
2150
final double defaultVisitPercentage ;
2151
- final boolean directRawDiskReads ;
2151
+ final boolean directRawVectorReads ;
2152
2152
2153
- BBQIVFIndexOptions (int clusterSize , double defaultVisitPercentage , RescoreVector rescoreVector , boolean directRawDiskReads ) {
2153
+ BBQIVFIndexOptions (int clusterSize , double defaultVisitPercentage , RescoreVector rescoreVector , boolean directRawVectorReads ) {
2154
2154
super (VectorIndexType .BBQ_DISK , rescoreVector );
2155
2155
this .clusterSize = clusterSize ;
2156
2156
this .defaultVisitPercentage = defaultVisitPercentage ;
2157
- this .directRawDiskReads = directRawDiskReads ;
2157
+ this .directRawVectorReads = directRawVectorReads ;
2158
2158
}
2159
2159
2160
2160
@ Override
@@ -2163,7 +2163,7 @@ KnnVectorsFormat getVectorsFormat(ElementType elementType) {
2163
2163
return new ES920DiskBBQVectorsFormat (
2164
2164
clusterSize ,
2165
2165
ES920DiskBBQVectorsFormat .DEFAULT_CENTROIDS_PER_PARENT_CLUSTER ,
2166
- directRawDiskReads
2166
+ directRawVectorReads
2167
2167
);
2168
2168
}
2169
2169
@@ -2177,12 +2177,13 @@ boolean doEquals(DenseVectorIndexOptions other) {
2177
2177
BBQIVFIndexOptions that = (BBQIVFIndexOptions ) other ;
2178
2178
return clusterSize == that .clusterSize
2179
2179
&& defaultVisitPercentage == that .defaultVisitPercentage
2180
- && Objects .equals (rescoreVector , that .rescoreVector );
2180
+ && Objects .equals (rescoreVector , that .rescoreVector )
2181
+ && directRawVectorReads == that .directRawVectorReads ;
2181
2182
}
2182
2183
2183
2184
@ Override
2184
2185
int doHashCode () {
2185
- return Objects .hash (clusterSize , defaultVisitPercentage , rescoreVector );
2186
+ return Objects .hash (clusterSize , defaultVisitPercentage , rescoreVector , directRawVectorReads );
2186
2187
}
2187
2188
2188
2189
@ Override
@@ -2196,6 +2197,9 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
2196
2197
builder .field ("type" , type );
2197
2198
builder .field ("cluster_size" , clusterSize );
2198
2199
builder .field ("default_visit_percentage" , defaultVisitPercentage );
2200
+ if (directRawVectorReads ) {
2201
+ builder .field ("direct_raw_vector_reads" , true );
2202
+ }
2199
2203
if (rescoreVector != null ) {
2200
2204
rescoreVector .toXContent (builder , params );
2201
2205
}
0 commit comments