Skip to content

Add Params to PhraseSuggestCollate #2965

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

Merged
merged 5 commits into from
Dec 21, 2017
Merged

Add Params to PhraseSuggestCollate #2965

merged 5 commits into from
Dec 21, 2017

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Dec 18, 2017

PhraseSuggestCollate Query takes an ITemplateQuery that allows the specification of parameters. The API of phrase suggester however specifies the parameters for the query at the same level as the query, not nested within the query object. This commit adds a Parameters dictionary to IPhraseSuggestCollate so that parameters are serialized to the correct query form. If parameters are specified on the ITemplateQuery, these are assigned to the parameters on IPhraseSuggestCollate.

Add XML documentation to indicate the usage of each property.

Closes #2849

PhraseSuggestCollate Query takes an ITemplateQuery that allows the specification of parameters. The API of phrase suggester however specifies the parameters for the query at the same level as the query, not nested within the query object. This commit adds a Parameters dictionary to IPhraseSuggestCollate so that parameters are serialized to the correct query form. If parameters are specified on the ITemplateQuery, these are assigned to the parameters on IPhraseSuggestCollate.

Add XML documentation to indicate the usage of each property.

Closes #2849
@russcam
Copy link
Contributor Author

russcam commented Dec 18, 2017

Requires a port to master. This port should probably not use ITemplateQuery and instead define a new type that does not expose a Params property

@russcam russcam merged commit f905270 into 5.x Dec 21, 2017
russcam added a commit that referenced this pull request Dec 21, 2017
PhraseSuggestCollate Query takes an IScript that allows the specification of parameters. The API of phrase suggester however specifies the parameters for the query at the same level as the query, not nested within the query object. This commit adds a Parameters dictionary to IPhraseSuggestCollate so that parameters are serialized to the correct query form. If parameters are specified on the IScript, these are assigned to the parameters on IPhraseSuggestCollate.

Add XML documentation to indicate the usage of each property.

Closes #2849

(cherry picked from commit f905270)
@Mpdreamz Mpdreamz deleted the fix/phrase-suggest-collate branch January 30, 2018 15:08
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