Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move kNN search and dense vectors to core #87815

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Correct custom codec definition
  • Loading branch information
jtibshirani committed Jun 22, 2022
commit 48f4d9db2c6d8647256ad775754e904ff4ce0fba
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ public PostingsFormat getPostingsFormatForField(String field) {
public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
Mapper mapper = mapperService.mappingLookup().getMapper(field);
if (mapper instanceof DenseVectorFieldMapper vectorMapper) {
return vectorMapper.getKnnVectorsFormatForField();
} else {
return super.getKnnVectorsFormatForField(field);
KnnVectorsFormat format = vectorMapper.getKnnVectorsFormatForField();
if (format != null) {
return format;
}
}
return super.getKnnVectorsFormatForField(field);
}

@Override
Expand Down