You are reviewing an index definition created with PowerShell. The index is used for a knowledge mining solution that extracts people and organizations from documents. Users report that when they type partial names in the search bar, the suggester does not return suggestions. What is the most likely reason?
The suggester only generates suggestions from the fields listed in its sourceFields collection. If people and organizations are absent from that list, partial-name queries return nothing, regardless of the analyser or searchMode settings. Adding those extracted fields to sourceFields satisfies the stem's requirement that partial names produce suggestions.
Why this answer
A suggester in Azure Cognitive Search only returns suggestions for fields explicitly listed in its `sourceFields` property. If the `people` and `organizations` fields are not included in `sourceFields`, the suggester cannot match partial names typed in the search bar, even if those fields are indexed and searchable. The suggester relies on prefix matching against the specified source fields to generate suggestions.
Exam trap
The trap here is that candidates may focus on data types or index keys instead of recognizing that the suggester's `sourceFields` property explicitly controls which fields participate in suggestion generation, a detail frequently tested in AI-102.
How to eliminate wrong answers
Option A is wrong because `Collection(Edm.String)` is the appropriate type for fields that contain multiple values (e.g., multiple people or organizations per document); changing them to `Edm.String` would lose multi-value support and is not related to suggester functionality. Option B is wrong because the `id` field being defined as a key is required for any index, but its presence or absence does not affect whether a suggester returns suggestions for other fields. Option D is wrong because `analyzingInfixMatching` is not a valid `searchMode` for a suggester; the correct `searchMode` is `analyzingInfixMatching` (note the typo in the option) but the real issue is that the suggester's `sourceFields` must include the target fields, not the search mode.