70-489 · Question #30
You have a SharePoint publishing site. The marketing team tags their documents by using a managed metadata field named Location. The site has been fully crawled. Documents are tagged with city names…
The correct answer is C. var queryTerms = "b49f64b3-4722-4336-9a5c-56c326b344d4". When querying managed metadata fields with KQL, using a term's GUID tells the search engine to match all documents tagged with that term AND all of its child terms in the term hierarchy. The 'Central' region in the term set is a parent term whose children are individual city…
Question
You have a SharePoint publishing site. The marketing team tags their documents by using a managed metadata field named Location. The site has been fully crawled. Documents are tagged with city names only. A SharePoint app on the site displays search results by using the following term set. You create the following code segment to query the contents of the site: (Line numbers are included for reference only.) You need to create a Keyword Query Language (KQL) expression to return results for all assets in the Central region. Which code segment should you insert at line 02?
Exhibits
Options
- Avar queryTerms = "Location";
- Bvar queryTerms = "577c8e48-d5d9-4e5f-8e35-408c723feb11";
- Cvar queryTerms = "b49f64b3-4722-4336-9a5c-56c326b344d4";
- Dvar queryTerms = "owstaxidlocation: 1acfae8a-70b4-4ce0-bfbf-96c0e711f 8df"
How the community answered
(16 responses)- A6% (1)
- B25% (4)
- C56% (9)
- D13% (2)
Explanation
When querying managed metadata fields with KQL, using a term's GUID tells the search engine to match all documents tagged with that term AND all of its child terms in the term hierarchy. The 'Central' region in the term set is a parent term whose children are individual city names. By supplying the GUID of the 'Central' term (b49f64b3-4722-4336-9a5c-56c326b344d4), the query returns every document tagged with any city under Central. Option A ('Location') only names the field and produces no filtering. Option B is likely the term set ID, which would match every tagged document across all regions. Option D uses the crawled property syntax 'owstaxidlocation:' with a specific leaf-term GUID; this targets only one single value and does not include child terms, so it would miss the city-level tags. Only option C correctly targets the parent 'Central' node and inherits all descendant cities.
Topics
Community Discussion
No community discussion yet for this question.

