Skip to Content

AI-102: How to Configure Azure AI Search Index Attributes for Social Media Data?

Learn how to configure Azure AI Search index attributes like Retrievable, Searchable, and Facetable to optimize social media data queries. Perfect guide for passing the AI-102 exam and advancing your AI career.

Table of Contents

Question

Xerigon Corporation has created an AI Search service in their Azure subscription. They have an application that searches social media for posts regarding Xerigon products.

You want to create an index of the social media posts. Each product is a field with a name, data type, and attributes. The index will be used to assist in queries. It has the following requirements.

  • The product name should appear in the search results.
  • Users should be able to drill down filtering on query results on categories and brands.
  • Users should be able to search for products by their complete or partial name, for example, “electric razor” or “razor.”

Which of the following index attributes should you configure for the products field? (Choose three.)

A. Filterable
B. Sortable
C. Retrievable
D. Searchable
E. Facetable

Answer

C. Retrievable
D. Searchable
E. Facetable

Explanation

The index attributes for this scenario are retrievable, facetable, and searchable.

An index must have a name and contain a field or fields. One field is considered the key which uniquely identifies each document. A field must have a name, data type, and associated attributes. Attributes specify how the field is used in the search index. You can enable the following attributes on a field:

  • Retrievable: Enable this attribute when you want the field returned in the query response. The attribute helps when you want to use a field (for example gross profit) as a scoring mechanism, filter, or for sorting. It has no effect on the size of the index.
  • Filterable: Enable this attribute if the field accepts a filter expression. However, filterable fields are strings, such as dm.String or Collection(Edm.String) and cannot be word-broken. If field M is set to “electric razor”, $filter=M eq ‘electric’ finds no matches, but $filter=M eq ‘electric razor’ will.
  • Sortable: Enable this attribute for fields that accept an orderby expression, which can sort results by score. However, you cannot set this attribute on fields of type Collection(Edm.String).
  • Facetable: Enable this attribute for fields for drilldown filtering. This attribute is used for search results that include the number count by category. For example, you want to know how many Waffle House restaurants are in a particular city. However, this attribute cannot be used with fields of type Edm.GeographyPoint.
  • Searchable: Enable this attribute for fields for full text search. The field must be a string, not numeric or boolean. The string field can be word broken. If you set a value such as “electric razor”, internally it is split into the individual tokens “electric” and “razor”.

You would enable the Retrievable attribute because the product name should appear in the search results. This attribute is used for a field that is returned in the query response.

You would enable the Searchable attribute, not Filterable, because users should be able to search for products by their complete or partial name, for example, “electric razor” or “razor.”

You would enable the Facetable attribute because users should be able to drill down filtering on query results on categories and brands.

You would not enable the Sortable attribute because there was no need to have an orderby expression.

You can create an index in the Azure portal by choosing your Azure AI Search service and importing data from your data source. The import data wizard allows you to create an index. The following graphic is a sample index created from a data source.

You can create an index in the Azure portal by choosing your Azure AI Search service and importing data from your data source. The import data wizard allows you to create an index. The following graphic is a sample index created from a data source.

Microsoft Azure AI Engineer Associate AI-102 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure AI Engineer Associate AI-102 exam and earn Microsoft Azure AI Engineer Associate AI-102 certification.