-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Suggester fixes #2548
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
Suggester fixes #2548
Conversation
- Term and phrase suggesters return score as `score` we were expecting `_score` - `freq` missing for term suggestion options - Smoothing models missing from phrase suggestion request - Integration tests for suggestions now checks all three not just (context) completion on documents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment int he csproj but otherwise LGTM 👍
src/Nest/Nest.csproj
Outdated
<Compile Include="Search\Suggesters\PhraseSuggester\PhraseSuggestCollate.cs" /> | ||
<Compile Include="Search\Suggesters\PhraseSuggester\PhraseSuggester.cs" /> | ||
<Compile Include="Search\Suggesters\PhraseSuggester\PhraseSuggestHighlight.cs" /> | ||
<Compile Include="Search\Suggesters\PhraseSuggester\SmoothingModel\ LinearInterpolationSmoothingModel.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leading space in the file name
internal double? SuggestScore { get; set; } | ||
|
||
[JsonIgnore] | ||
public double Score => DocumentScore ?? SuggestScore ?? 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice
* Suggester fixes - Term and phrase suggesters return score as `score` we were expecting `_score` - `freq` missing for term suggestion options - Smoothing models missing from phrase suggestion request - Integration tests for suggestions now checks all three not just (context) completion on documents * removed leading space in filename, nice catch @gmarz
backported to Implemented a new PR #2553 for the backport to 2.x since it does not need the changes to |
* Suggester fixes - Term and phrase suggesters return score as `score` we were expecting `_score` - `freq` missing for term suggestion options - Smoothing models missing from phrase suggestion request - Integration tests for suggestions now checks all three not just (context) completion on documents * removed leading space in filename, nice catch @gmarz
score
we were expecting_score
freq
missing for term suggestion options