SharePoint 2013 Search not bring back all my results


As a developer sometimes you will be creating pages as demo content and use the helpful website Lorem Ipsum http://www.lipsum.com/ or Bacon Ipsum http://baconipsum.com/ or if you are into your pirates http://pirateipsum.me/ to help you generate your text.

Select the number of paragraphs you want, or the number of words, hit a button and then you get a clipboard full of text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce pellentesque quam eu metus hendrerit, vel venenatis augue tempus. Aliquam a libero et quam pellentesque venenatis ac sed odio. Morbi at velit ligula. Ut mattis nec lacus ut rhoncus. Fusce ac convallis mi. Pellentesque varius at purus et congue. Mauris commodo feugiat eros non bibendum. Maecenas scelerisque tortor eu purus sodales, ut lacinia ligula tempor.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed vulputate eget dui non accumsan. Donec non neque non ante vulputate fermentum. Quisque a magna at dolor adipiscing feugiat et sit amet mi. Morbi at consectetur est, eget auctor velit. Vestibulum rhoncus eros eu est elementum faucibus. Aenean tortor erat, aliquam hendrerit tincidunt nec, eleifend sit amet lorem. Nunc scelerisque ante commodo mauris facilisis, vel feugiat orci vehicula. Integer molestie tincidunt nisi, vitae ultricies sapien convallis ut. Quisque tincidunt, turpis in sagittis egestas, libero risus gravida turpis, id lacinia dolor ligula et diam. Suspendisse nec aliquam neque, rutrum hendrerit augue. Aenean id ipsum venenatis, iaculis ipsum et, volutpat tortor.

So I’ve created 10 different publishing pages (all with different page names, and different images in the publishing Image) and filled them all with 5 paragraphs each of Lorem Ipsum, and set off a full index crawl of the content. Using the Content Search Query webpart, the preview (with the right query) brings back all 10 pages. However once I have saved the query in the webpart, it only returns 1 result. The same with SharePoint Search, I know all my pages are based on the same content type, so in the search box I type ContentType:”Cann0nF0dder Page” but yet only one result comes back. However putting the name of the page in the search the individual pages do come back, so they are within the search index.

So what is happening? SharePoint is getting too clever for its own good. It’s seeing that the content on the pages are the same, and assuming they are duplicates. Therefore the search doesn’t show multiple results. With the Content Search Webpart, you can export the webpart, change the “ShowViewDuplicates” property, then re-import it.

I’d recommend that when you are using Lorem Ipsum, paste different paragraphs in your pages.

Advertisements