Displaying Search Content in SharePoint

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:

 

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:

 

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

 

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

 

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”:

 

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.

 

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

 

I also have options for showing Ranked Results 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.



Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Banton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.