Skip to content

Conversation

Mpdreamz
Copy link
Member

  • 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

- 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
Copy link
Contributor

@gmarz gmarz left a 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 👍

<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" />
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 nice

@Mpdreamz Mpdreamz merged commit 5680fea into master Jan 25, 2017
Mpdreamz added a commit that referenced this pull request Jan 25, 2017
* 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
@Mpdreamz
Copy link
Member Author

backported to 5.x

Implemented a new PR #2553 for the backport to 2.x since it does not need the changes to SuggestOption

@Mpdreamz Mpdreamz deleted the fix/suggesters branch January 25, 2017 10:08
@gmarz gmarz added Bug labels Feb 15, 2017
awelburn pushed a commit to Artesian/elasticsearch-net that referenced this pull request Nov 6, 2017
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants