Skip to content

Add SmoothingModel and candidate generator serialization to PhraseSuggestionBuilder#16309

Merged
cbuescher merged 3 commits intoelastic:feature-suggest-refactoringfrom
cbuescher:phraseSuggestion-smoothingModel
Feb 1, 2016
Merged

Add SmoothingModel and candidate generator serialization to PhraseSuggestionBuilder#16309
cbuescher merged 3 commits intoelastic:feature-suggest-refactoringfrom
cbuescher:phraseSuggestion-smoothingModel

Conversation

@cbuescher
Copy link
Copy Markdown
Member

With SmoothingModels and CandidateGenerator now beeing able to be serialized via NamedWritable infrastructure, PhraseSuggestionBuilder can now properly delegate read/write and equals/hashCode to their implementations. Also adding randomization of smoothing model and candidate generators to tests.

@cbuescher cbuescher added review :Search Relevance/Suggesters "Did you mean" and suggestions as you type v5.0.0-alpha1 labels Jan 29, 2016
@cbuescher cbuescher force-pushed the phraseSuggestion-smoothingModel branch from 4434bb4 to a9ba1e7 Compare February 1, 2016 12:51
@cbuescher cbuescher changed the title Add SmoothingModel serialization to PhraseSuggestionBuilder Add SmoothingModel and candidate generator serialization to PhraseSuggestionBuilder Feb 1, 2016
@cbuescher cbuescher force-pushed the phraseSuggestion-smoothingModel branch from aa9af12 to d38a1b4 Compare February 1, 2016 13:52
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we name this method readPhraseSuggesterSmoothingModel() so it doesn't confuse with other smoothing models we might have in the future (e.g. for a interpolating pipeline aggregator)?

@colings86
Copy link
Copy Markdown
Contributor

Left one comment but LGTM

@cbuescher cbuescher closed this Feb 1, 2016
@cbuescher cbuescher reopened this Feb 1, 2016
cbuescher added a commit that referenced this pull request Feb 1, 2016
With SmoothingModels and CandidateGenerator now beeing able to be serialized via NamedWritable infrastructure, PhraseSuggestionBuilder can now properly delegate read/write and equals/hashCode to their implementations. Also adding randomization of smoothing model and candidate generators to tests.
@cbuescher cbuescher merged commit 5bed143 into elastic:feature-suggest-refactoring Feb 1, 2016
@cbuescher cbuescher deleted the phraseSuggestion-smoothingModel branch March 31, 2016 09:26
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Search Refactoring labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Suggesters "Did you mean" and suggestions as you type :Search/Search Search-related issues that do not fall into other categories v5.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants