Question 6 of 48
DRAG DROP -
You develop a SharePoint app that uses the client-side object model (CSOM) to retrieve items from the search index.
You need to implement the client-side query code.
Which four code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Select and Place:
Exam 70-489: Question 6 - Image 1
    Correct Answer:
    Note:
    Reference:
    * Step 1:
    First we need to add the necessary references such as.
    usingMicrosoft.SharePoint.Client;
    usingMicrosoft.SharePoint.Client.Search;
    usingMicrosoft.SharePoint.Client.Search.Query;
    Step 2:
    Start by creating aClientContextobject and pass in the URL to a site. Put this in a using block.
    Using(ClientContextclientContext =newClientContext("http://servername"))
    We then need to create aKeywordQueryclass to describe the query. This class is similar to the server sideKeywordQueryclass but there are some differences.
    We pass the ClientContext into the constructor.
    KeywordQuerykeywordQuery =newKeywordQuery(clientContext);
    * Step 3:
    Unlike the server object model, with the Client OM we have to use another class,SearchExecutor, to send the queries to the search engine. We pass a
    ClientContext to it as well:
    SearchExecutorsearchExecutor =newSearchExecutor(clientContext)
    Step 4:
    on the ClientContext object. If you have done a lot of Client OM work before, you might first but it is not required. clientContext.ExecuteQuery();
    Reference: How to: Query Search with the SharePoint 2013 Client Object Model Exam 70-489: Question 6 - Image 2
Question 7 of 48
You develop a SharePoint app for a toy company that uses the Representational State Transfer (REST) API for search. The site collections in the app have been crawled recently and use the default search schema.
The app includes the following code segment: (Line numbers are included for reference only.)
Exam 70-489: Question 7 - Image 1
You create the following result sources.
Exam 70-489: Question 7 - Image 2
You need to ensure that the app only displays PDF documents.
Which code segment should you insert at line 03?
    Correct Answer:

Question 8 of 48
HOTSPOT -
A SharePoint app displays the following search results:
Exam 70-489: Question 8 - Image 1
You have the following requirements:
✑ Group results by model.
✑ Display only two rows per model.
✑ Show a unique color for each model.
You need to define a query to meet the requirements.
How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)
Hot Area:
    Correct Answer:
    Exam 70-489: Question 8 - Image 2
Question 9 of 48
A legal company uses SharePoint for document and records management. You search all documents by using extractors and managed properties. FAST Query
Language (FQL) is enabled for the result sources, and the content of the document is indexed as full text. All documents are named by using the following pattern:
"AAA-Axxxx-AA".
You must find documents that were created in May 2012 and contain the ordered keywords "liable", "advocate", and "adjudication". Results that are returned must include only document names that begin with "HCT-Q" and end only with "AB".
You need to create the FQL query that returns the required results.
Which FQL statements should you use? (Each correct answer presents part of the solution. Choose all that apply.)
    Correct Answer: B, D, F

Question 10 of 48
You have a SharePoint farm. You create a web service that connects to an extension point in the Search service. The web service processes string content and returns the string in all capitalized letters.
The web service includes the properties in the following table.
Exam 70-489: Question 10 - Image 1
You start the SharePoint Management Shell. You create the following Windows PowerShell cmdlet: (Line numbers are included for reference only.)
Exam 70-489: Question 10 - Image 2
You need to complete the Windows PowerShell cmdlet to register the Content Enrichment service.
Which code segment should you insert at line 04?
Exam 70-489: Question 10 - Image 3
    Correct Answer: D