Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add support for L1 distance in AKNN, custom scoring and painless scripting #310

Merged
merged 4 commits into from
Feb 2, 2021

Conversation

elb3k
Copy link
Contributor

@elb3k elb3k commented Jan 26, 2021

Feature request from this issue

nmslib 2.0.11 added efficient indexing for l1 and linf.
So I added support for l1 spaceType and scoring.
I did not add new scoring to knn whitelist as it needs review.

@codecov
Copy link

codecov bot commented Jan 26, 2021

Codecov Report

Merging #310 (22d4662) into master (b34f930) will increase coverage by 0.10%.
The diff coverage is 89.47%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #310      +/-   ##
============================================
+ Coverage     80.51%   80.61%   +0.10%     
- Complexity      388      392       +4     
============================================
  Files            62       62              
  Lines          1468     1486      +18     
  Branches        130      133       +3     
============================================
+ Hits           1182     1198      +16     
- Misses          239      240       +1     
- Partials         47       48       +1     
Impacted Files Coverage Δ Complexity Δ
...oforelasticsearch/knn/index/util/KNNConstants.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...asticsearch/knn/plugin/script/KNNScoringSpace.java 94.73% <75.00%> (-5.27%) 0.00 <0.00> (ø)
...endistroforelasticsearch/knn/index/SpaceTypes.java 100.00% <100.00%> (ø) 5.00 <0.00> (ø)
...arch/knn/plugin/script/KNNScoringSpaceFactory.java 90.90% <100.00%> (+2.02%) 5.00 <0.00> (+1.00)
...lasticsearch/knn/plugin/script/KNNScoringUtil.java 98.27% <100.00%> (+0.23%) 21.00 <3.00> (+3.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b34f930...22d4662. Read the comment docs.

@jmazanec15
Copy link
Member

Hi @Elbek-Khoshimjonov, thanks for the PR! I will review this week,

Copy link
Member

@jmazanec15 jmazanec15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmazanec15 jmazanec15 requested a review from VijayanB January 29, 2021 17:43
@jmazanec15 jmazanec15 added the Features New functionality added label Jan 29, 2021
Copy link
Member

@jmazanec15 jmazanec15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for making this change!

@VijayanB
Copy link
Member

VijayanB commented Feb 2, 2021

LGTM! Thanks for making changes!

@jmazanec15 jmazanec15 merged commit bb19c8d into opendistro-for-elasticsearch:master Feb 2, 2021
@VijayanB VijayanB changed the title Added L1 index and scoring Add support for L1 distance in AKNN, custom scoring and painless scripting Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Features New functionality added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants