AZ-204 · Question #295
Drag and Drop Question You are a developer for a company that provides a bookings management service in the tourism industry. You are implementing Azure Search for the tour agencies listed in your…
The correct answer is Create a SearchIndexClient object to connect to the search index.; Create an IndexBatch that contains the documents which must be added.; Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch. To import data into Azure Search using the .NET SDK, you must first create a SearchIndexClient object to establish a connection to the target search index. Next, you create an IndexBatch containing the documents to be uploaded or merged into the index. Finally, you call the…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- Create a SearchIndexClient object to connect to the search index.
- Create an IndexBatch that contains the documents which must be added.
- Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch.
Explanation
To import data into Azure Search using the .NET SDK, you must first create a SearchIndexClient object to establish a connection to the target search index. Next, you create an IndexBatch containing the documents to be uploaded or merged into the index. Finally, you call the Documents.Index method on the SearchIndexClient, passing the IndexBatch to actually push the data into Azure Search. This is the standard push model for indexing documents programmatically.
Topics
Community Discussion
No community discussion yet for this question.
