Displaying Search Content in SharePoint

We offer private, customized training for 3 or more people at your site or online.

Q: What distinguishes the Content Query Web Part from the Search Results Web Part When Displaying Items from the Search?

A: Both the Content Query Web Part and the Search Results Web Part let you display formatted search results, but there are some significant differences in how you can display your search results.

 

Let’s take an example where we search SharePoint using the keyword “SharePoint”. I’ve modified the query in the Content Search Web Part to only look for the word “SharePoint,” shown in the following screen shot:

content search

 

Once I get the Query returning the correct results and click OK, I then have the following options in the Content Query Web Part editor for how to display the data:

content query web part editor

 

If I select “Two Lines” from the dropdown list, the Content Search Result Web Part displays this data:

content search results

 

If I keep the default settings, the Content Search Web Part displays the data like this:

Content search data

 

Unless you have pictures associated with each of your search items, you might not want to use this option.

The Search Results Web Part has more options for displaying items returned from the search. Here is an example of the Query Editor in the Search Results Web Part that searches for anything containing the word “SharePoint”:

Search results web part

 

Above, the Search Results Web Part Query Builder is different than the Content Search Web Part, although both queries are searching for the term “SharePoint.”

The Search Results Web Part gives you much more flexibility to display the results of the search, including using different result types for different types of items, and even an option to edit the JSON.

search results

 

As the following screen shot shows, I have many choices for the Result Types to display items:

Result Types to display

 

I also have options for showing Ranked Results and Sorted Results:

Options for ranked and sorted results

I can even customize the Sort orders with JSON!

As you can see, both the Content Search Web Part and the Search Results Web Part are useful for showing Search Results to your users. Both use content that has already been indexed, both can include data from all site collections, and both can include any data that has been indexed by the search. However, the way the two display Search Results is significantly different.


Author: Shelley Vinson Helfer, one of Accelebrate’s SharePoint instructors


In-Depth SharePoint Training

For in-depth SharePoint training, click here to view all of Accelebrate's SharePoint training courses for you and your staff.

Request Pricing 

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan