Azure-docs: Incorrect sample code

Created on 20 Mar 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

The article refers to auto-complete and explains how it differs from suggestions, but the sample code given is for suggestion rather than auto-complete. The correct auto-complete C# sample can be found in the referenced sample project under DotNetHowToAutocomplete.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug searcsvc triaged

All 6 comments

@keithl8041 Thank you for your feedback . We will investigate and update further.

@keithl8041 We have reassigned your feedback to the author to see if this was done intentionally.

@keithl8041 The DotNetHowToAutocomplete sample illustrates both Suggestions and Autocomplete features. In HomeController.cs, line 41 is the Suggestions query and line 69 is the Autocomplete query. The construction is very similar so the author wanted to show them side by side. We will revise the docs to make our intentions more obvious. Thanks for the feedback!

please-close

Hi, sorry if the initial report wasn't clear - the code in the DotNetHowToAutocomplete solution is complete and very useful, I was just pointing out that the function to be featured in the article should be the auto-complete function (line 69) instead of the current suggestion function (line 41).

@keithl8041 good to hear that it's not a code issue. I'm working on doc revisions. I'll circle back on this PR when I have something to show you.

@keithl8041 Doc updates are published: https://docs.microsoft.com/en-us/azure/search/search-autocomplete-tutorial

The supplemental content to the sample code now includes suggestions and autocomplete code blocks for both C# and Java. I retitled the doc to convey that the example code covers both features. I'm recommending that we close this issue, but feel free to reopen if you have further feedback.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

Favna picture Favna  Â·  3Comments