SharePoint 2010 has a big limitation with Content Query Web Part to roll up
content and we have to do good effort of work around as Content Query Web Part
was limited to the Site Collection. In SharePoint 2010 we used the Content
Query Web Part which helps us to see content instantly without waiting for the
next crawl.
This drawback is eliminated in SharePoint 2013 using Content Search Web
Part. Content Search Web part is available in the Web part>Content Roll Up>Content
Search. This web part will allow you to create your own query easily and
display the results the way.
Change Query in the Property Page will allow you to design your own query.
The “Query Builder” has a nice UI that helps us to configure the query. “Switch
to the Advanced Mode” in the “Query Builder” will provide more option to narrow
down result.
A “Test Query” Option is available with the “Query Builder” which will
provide a Preview of Result for whatever you configured.
Now the question is why we need Content Query Web Part in SharePoint 2013
since we are having Content Search Web part. To understand this we need to
understand how this both web parts work. CSWP work based on the search index,
made by Crawl. The result will be displayed is the data is crawled. CQWP does
not depend on Crawl. Again this is less significant since as SharePoint 2013
supports continuous crawl. CSWP will not search minor versions whereas CQWP
does.(I am not sure this is a bug and will be rectified later). From a design perspective
CSWP no longer requires XSLT, HTML, or JavaScript.