Class PerFieldKnnVectorsFormat

java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.perfield.PerFieldKnnVectorsFormat
All Implemented Interfaces:
NamedSPILoader.NamedSPI

public abstract class PerFieldKnnVectorsFormat extends KnnVectorsFormat
Enables per field numeric vector support.

Note, when extending this class, the name (KnnVectorsFormat.getName()) is written into the index. In order for the field to be read, the name must resolve to your implementation via KnnVectorsFormat.forName(String). This method uses Java's Service Provider Interface to resolve format names.

Files written by each numeric vectors format have an additional suffix containing the format name. For example, in a per-field configuration instead of _1.dat filenames would look like _1_Lucene40_0.dat.

See Also:
WARNING: This API is experimental and might change in incompatible ways in the next release.