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

LUCENE-9594 Add linear function for FeatureField #2051

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

mayya-sharipova
Copy link
Contributor

This adds a linear function and newLinearQuery for FeatureField

This adds a linear function and newLinearQuery for FeatureField
Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

This makes sense to me, but I think the javadocs should be clearer that this is expert functionality as it makes some strong assumptions on how features are encoded in the index?

* <ul>
* <li>{@link #newLinearQuery w * S}. This is the simplest function
* where no transformation is applied on the feature value, and
* the feature value itself multiplied by weight defines the score.
Copy link
Contributor

Choose a reason for hiding this comment

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

"the simplest" might suggest that this would be a good one to start with, when in fact I think this is the most expert function in my opinion given that it expects the feature to already be encoded in the index in a way that makes sense for scoring. Maybe javadocs should better convey that this is expert functionality?

@mayya-sharipova
Copy link
Contributor Author

@jpountz Thank you for the feedback, it makes sense. Addressed in 2dfa551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants