Skip to content

Add fromXContent method to SuggestBuilder#16505

Merged
cbuescher merged 1 commit intoelastic:feature-suggest-refactoringfrom
cbuescher:suggestBuilder-refactoring
Feb 9, 2016
Merged

Add fromXContent method to SuggestBuilder#16505
cbuescher merged 1 commit intoelastic:feature-suggest-refactoringfrom
cbuescher:suggestBuilder-refactoring

Conversation

@cbuescher
Copy link
Copy Markdown
Member

This adds the ability to parse from xContent to the SuggestBuilder. Borrowing some test infrastructure code (WritableTestCase) from #16398 and extending it to be also able to use NamedWritable streamsl.

@cbuescher cbuescher added :Search Refactoring :Search Relevance/Suggesters "Did you mean" and suggestions as you type labels Feb 8, 2016
@abeyad
Copy link
Copy Markdown

abeyad commented Feb 8, 2016

@cbuescher LGTM, I made one change, making the text field a ParseField instead of just a string literal. I was not able to create a PR to your branch (I don't think I have permissions to your repo), so I just created this PR here: #16510. I can squash the commits into one if you think its OK.

@cbuescher cbuescher force-pushed the suggestBuilder-refactoring branch from f02146a to 68230ad Compare February 9, 2016 13:30
@cbuescher
Copy link
Copy Markdown
Member Author

@abeyad thanks, good catch. I added the ParseField you mentioned. Will wait with the merge just to ask if modifying the WritableTestCase here creates merge problems for @areek, then I can merge this.

@cbuescher cbuescher force-pushed the suggestBuilder-refactoring branch from 68230ad to c5015ac Compare February 9, 2016 16:44
@cbuescher cbuescher force-pushed the suggestBuilder-refactoring branch from c5015ac to 9abf00b Compare February 9, 2016 16:48
cbuescher added a commit that referenced this pull request Feb 9, 2016
Add fromXContent method to SuggestBuilder
@cbuescher cbuescher merged commit 16d0108 into elastic:feature-suggest-refactoring Feb 9, 2016
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Search Refactoring labels Feb 14, 2018
@cbuescher cbuescher deleted the suggestBuilder-refactoring branch November 27, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Suggesters "Did you mean" and suggestions as you type :Search/Search Search-related issues that do not fall into other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants