locked
SharePoint online Search Result webpart query to filter RRS feed

  • Question

  • Hi All,

    I have a requirement of showing a set of pages with matched to a given content type using SharePoint Search Result webpart.  Following are the requirements which Search Result webpart should satisfy after configuring.

    1. It should display all the pages which matched to given content type.

    2. If ArticleCategory query parameter available with a value results should further filter to match the ArticleCategory property condition.

    Following is the how I configure the query to just to show Article pages. This query display all the article pages as expected.

    But when I put the Article Category condition it wasn't giving any results. I was expecting even ArticleCategory parameter not have any values it will display all articles pages.

    I want to know how to write a query to get all Article pages if the Articlecategory parameter is empty.

    Thank you.

    Tuesday, December 29, 2015 5:18 AM

Answers