Objective
In SharePoint 2013 search, there is a very useful feature for refining search results, which is "query rules." You can refine the display result for certain queries. Below, we briefly introduce the use and effect of this function.
1, usually SharePoint search, we crawl the content source in Central administration's Search Center, and then configure the search scope in the search core results, such as:
2, however, for different keywords, we can also through the search rules, the refinement of its search, into the Site Settings – query rules, such as:
3, in the management of query rules on the page, first need to select a result source, to customize the query rules for it, such as:
4, choose a good result source, you can create new query rules, click New query rules, such as:
5, first enter the name of the rule, and then select the criteria for the query, such as:
Note: Here is the configuration when the keyword is "SharePoint" under the conditions, trigger this rule, if there are other requirements, you can also choose other query criteria;
6, then is to fill in the action of triggering the rule, I choose the third, the other means, we can in the left actions below the description to understand; I'm here when the condition is triggered, according to the current query conditions processing;
7, click "Change ranked results by changing the query", will pop up the page, enter the inquiry text, such as the red box:
Note: Here only the contents of the fixed list, ignoring the other path (in fact, we can limit the return file type, author and many other conditions, I am just a simple example);
8, in the previous three places have been entered, remember to check the activation below publishing, otherwise this rule is not effective, that is, can not be applied to the search, such as:
9, back to the original Management query criteria page, you can see our definition of the site query rules, colleagues can also clearly understand the query conditions and triggered actions, such as:
10, when we execute the query keyword "SharePoint", the discovery rule has been effective, the search results only fixed list of content, shielding the other results (can compare the first step of the diagram), such as:
11, a keyword for the query, found that does not meet the query rules of the search, or follow the previous search to show.
Summarize
Site of the query rules, for the search, is a very useful function, here just to do a simple display, familiar with later, we can customize a lot of more complex search; At the same time, the keyword of the search rule can be separated by half-width semicolon, without a series of rules, custom many query rules.
At the same time, on the page that manages the query rules, we can easily disable or enable this query rule, and do not need to start an incremental or full crawl to make it effective. We can also configure two intervals between dates, the rule is in effect, very flexible, as for more features, but also need everyone to continue digging, today to here, rest. Take a break.
Example of using SharePoint 2013 site Search rules