Skip to content

Commit 00682ca

Browse files
committed
Update copyright year and comments
1 parent dd3300f commit 00682ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/es818/ES818FlatVectorsReader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*
18-
* Modifications copyright (C) 2024 Elasticsearch B.V.
18+
* Modifications copyright (C) 2025 Elasticsearch B.V.
1919
*/
2020
package org.elasticsearch.index.codec.vectors.es818;
2121

@@ -50,7 +50,7 @@
5050
import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsReader.readSimilarityFunction;
5151
import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsReader.readVectorEncoding;
5252

53-
/** Copied from Lucene99FlatVectorsReader in Lucene 10.1, then modified */
53+
/** Copied from Lucene99FlatVectorsReader in Lucene 10.1, then modified to support DirectIOIndexInputSupplier */
5454
@SuppressForbidden(reason = "Copied from lucene")
5555
public class ES818FlatVectorsReader extends FlatVectorsReader {
5656

@@ -119,6 +119,7 @@ private static IndexInput openDataInput(
119119
IOContext context
120120
) throws IOException {
121121
String fileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, fileExtension);
122+
// use direct IO for accessing raw vector data for searches
122123
IndexInput in = context.context() == IOContext.Context.DEFAULT && state.directory instanceof DirectIOIndexInputSupplier did
123124
? did.openInputDirect(fileName, context)
124125
: state.directory.openInput(fileName, context);

0 commit comments

Comments
 (0)