Content Search WP not finding records for custom Content Type added to existing list

I have a custom content type that I use in a custom list, which I have saved off to the List Templates Gallery. When I create lists from this template in different sites in a collection, the Content Search Web Part finds the various records and rolls them up for rendering via a custom Display Template.

This is all great. However, I was hoping that if I added my custom content type to an existing list, the Content Search WP would also find these records, however, such is not the case.

I am wondering if I am doing something wrong or if the Content Search WP is only going to find content where the identified content type is the sole type for the list.

August 31st, 2015 7:24pm

Hi,

According to your description, my understanding is that you want to search the records when adding a custom content type to an existing list in content search web part.

In my environment, I add a custom content type to a list, then I add some items with the fields in the content type and then in content search web part I can also find the content type record.

I suggest you can try to do a full crawl and check if the content type records can be crawled in crawl log.

Here is a detailed article for your reference:

https://technet.microsoft.com/en-us/library/JJ219814.aspx?f=255&MSPPError=-2147217396

Best practices for using crawl logs (SharePoint Server 2010)

Thanks

Best Regards

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 9:05am

search results may be trimmed in many places. At first I would recommend you to check what raw data is returned from search service without applying any display templates. You may do it by the following way: in web part properties click Query builder button and then go to last tab with test results. See whether items with custom content types appear there. If they appear, then add console.log(...) traces to the used display templates and see are they passed to UI processing part. Doing by that you will be able to determine place where items disappear from results.
September 3rd, 2015 1:56pm

I had the admins do a full crawl and then I examined the logs and I could see that the specific list was crawled, row by row. What is not clear to me is how I can determine if the data in that list associated with the custom content type in a given row gets crawled. I only see that the row itself was crawled.
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 6:02pm

I edited my custom display content and added a "debugger;" line into the javascript and then used Chrome to step through the execution of the code. This is discussed in the post:

powersearching.wordpress.com/2013/01/25/debugging-display-temlates-in-sharepoint-2013-search/

In the looping through the ctx object, there was never a reference to the Task list to which I had added my custom content type, so something is preventing the Content Search webpart from selecting the data.  My CSWP Query specifies "Items matching a content type (System)", "Don't restrict results by app", "Don't restrict by any tag", "ISProjectInitiative" is my selected custom content type, and {searchboxquery} is in the Add additional filters field.

I have no Refiners specified in the CSWP Query, the Settings Tab has the first 3 radio buttons selected and "Regular" for the Priority.

The Test Tab just displays "ContentTypeId:0x01009651A22E55B1504FB16534E6D572F02E*" in the Query Text field.

I'm not sure where to look next.



September 4th, 2015 6:13pm

I had the admins do a full crawl and then I examined the logs and I could see that the specific list was crawled, row by row. What is not clear to me is how I can determine if the data in that list associated with the custom content type in a given row gets crawled. I only see that the row itself was crawled.
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 10:00pm

I edited my custom display content and added a "debugger;" line into the javascript and then used Chrome to step through the execution of the code. This is discussed in the post:

powersearching.wordpress.com/2013/01/25/debugging-display-temlates-in-sharepoint-2013-search/

In the looping through the ctx object, there was never a reference to the Task list to which I had added my custom content type, so something is preventing the Content Search webpart from selecting the data.  My CSWP Query specifies "Items matching a content type (System)", "Don't restrict results by app", "Don't restrict by any tag", "ISProjectInitiative" is my selected custom content type, and {searchboxquery} is in the Add additional filters field.

I have no Refiners specified in the CSWP Query, the Settings Tab has the first 3 radio buttons selected and "Regular" for the Priority.

The Test Tab just displays "ContentTypeId:0x01009651A22E55B1504FB16534E6D572F02E*" in the Query Text field.

I'm not sure where to look next.



September 4th, 2015 10:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics