How To Build Your Query For Recommended Items Webpart SharePoint 2013

SharePoint 2013 offers a powerful Webpart called “Recommended Items” that can enhance your workflow by providing personalized recommendations. Here’s how you can build your query to make the most of this feature.

To build your query for the recommended items Web Part in SharePoint 2013, follow these steps:

  1. Navigate to the page where you want to add the recommended items Web Part.
  2. Select “Settings” and then “Edit page”.
  3. In the Web Part Zone, select “Add a Web Part”.
  4. In the Categories list, select “Search-Driven Content”.
  5. In the Parts list, select “Recommended Items” and then click “Add”.
  6. In the Web Part tool pane, select “Edit Web Part”.
  7. In the Build Your Query dialog, select “A token from the URL” to specify which URL value to get recommendations from.
  8. In the Restrict by app section, select “Specify a URL” and enter the URL of your catalog.
  9. Select “TEST” to view the query that will be issued by the Web Part.
  10. Configure the display template for the recommended items Web Part to control how the content is displayed.
  11. Save the changes and the recommended items will be displayed on your catalog item page.

To optimize the performance of the Content Search Web Part and reduce page load time, consider the following tips:

  • Avoid using multiple OR operators in your query. Use AND operators instead.
  • Avoid using wildcard operators (*). Use exact matching.
  • Avoid using keyword phrases.

By following these steps and optimizing your query, you can effectively build and configure the recommended items Web Part in SharePoint 2013.

Steps to Build Your Query

To build your query for the recommended items Webpart in SharePoint 2013, follow these simple steps:

  1. Navigate to the page where you want to add the recommended items Web Part.
  2. Select “Settings” and then “Edit page”.
  3. In the Web Part Zone, select “Add a Web Part”.
  4. In the Categories list, select “Search-Driven Content”.
  5. In the Parts list, select “Recommended Items” and then click “Add”.
  6. In the Web Part tool pane, select “Edit Web Part”.
  7. In the Build Your Query dialog, select “A token from the URL” to specify which URL value to get recommendations from.
  8. In the Restrict by app section, select “Specify a URL” and enter the URL of your catalog.
  9. Select “TEST” to view the query that will be issued by the Web Part.
  10. Configure the display template for the recommended items Web Part to control how the content is displayed.
  11. Save the changes and the recommended items will be displayed on your catalog item page.

Tips to Optimize Performance

To optimize the performance of the Content Search Web Part and reduce page load time, consider the following tips:

  • Avoid using multiple OR operators in your query. Use AND operators instead.
  • Avoid using wildcard operators (*). Use exact matching.
  • Avoid using keyword phrases.

By following these steps and optimizing your query, you can effectively build and configure the recommended items Web Part in SharePoint 2013.

Step Action
Step 1 Navigate to the page where you want to add the recommended items Web Part.
Step 2 Select “Settings” and then “Edit page”.
Step 3 In the Web Part Zone, select “Add a Web Part”.
Step 4 In the Categories list, select “Search-Driven Content”.
Step 5 In the Parts list, select “Recommended Items” and then click “Add”.
Step 6 In the Web Part tool pane, select “Edit Web Part”.
Step 7 In the Build Your Query dialog, select “A token from the URL” to specify which URL value to get recommendations from.
Step 8 In the Restrict by app section, select “Specify a URL” and enter the URL of your catalog.
Step 9 Select “TEST” to view the query that will be issued by the Web Part.
Step 10 Configure the display template for the recommended items Web Part to control how the content is displayed.
Step 11 Save the changes and the recommended items will be displayed on your catalog item page.

Tips to Optimize Performance

To ensure optimal performance and reduce page load time, consider the following tips when building and configuring your recommended items Web Part:

  1. Avoid using multiple OR operators: Instead of using multiple OR operators in your query, use AND operators. This will help narrow down the search results and improve the performance of the Web Part.
  2. Avoid using wildcard operators: Instead of using wildcard operators such as “*”, use exact matching. This will help the search engine retrieve the relevant items more efficiently, leading to better performance.
  3. Avoid using keyword phrases: While it might be tempting to use keyword phrases in your query, it can negatively impact the performance of the Web Part. Stick to specific keywords for better performance.

“By following these steps and optimizing your query, you can effectively build and configure the recommended items Web Part in SharePoint 2013.”

By implementing these tips, you can enhance the performance of the recommended items Web Part, resulting in faster page load times and a smoother user experience. It is important to strike a balance between the complexity of the query and the performance requirements to ensure optimal performance.

Example of a Query:

Query Performance Impact
Keywords: “SharePoint 2013” Minimal impact
Keywords: “SharePoint 2013” AND “Web Part” Improved performance
Keywords: “SharePoint 2013” OR “Office 365” AND “Web Part” Reduced performance

As seen in the example above, using multiple OR operators can have a negative impact on performance. It is recommended to use AND operators to narrow down the search results and improve performance.

Conclusion

By following these steps and implementing the optimization tips, you can effectively build and configure the recommended items Web Part in SharePoint 2013 to enhance your workflow and improve the user experience.

To build your query for the recommended items Web Part in SharePoint 2013, start by navigating to the page where you want to add the Web Part. Select “Settings” and then “Edit page”. In the Web Part Zone, choose “Add a Web Part”. From the Categories list, select “Search-Driven Content” and then select “Recommended Items” from the Parts list and click “Add”.

In the Web Part tool pane, click “Edit Web Part” and a dialog box will appear. Select “A token from the URL” to specify which URL value you want to get recommendations from. In the “Restrict by app” section, choose “Specify a URL” and enter the URL of your catalog. Click “TEST” to view the query that will be issued by the Web Part.

In order to optimize the performance of the Content Search Web Part and reduce page load time, it is important to avoid using multiple OR operators in your query. Instead, use AND operators. Additionally, avoid using wildcard operators (*) and opt for exact matching. Lastly, it is recommended to avoid using keyword phrases.

By following these steps and optimizing your query, you can effectively build and configure the recommended items Web Part in SharePoint 2013. This will not only enhance your workflow but also improve the user experience. Take advantage of these features to make the most out of your SharePoint experience.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.