Friday, 16 June 2017

How to add SharePoint content type columns to search schema managed property and crawled property


Problem-

1. Custom content type columns are not available in search query.
2. Not able to search by column name of content type.

Solution-

Condition 1- The column through which you want to search, their types should be:

  • Text
  • Integer
  • Decimal
  • Date and time
  • yes/no
  • Double precision float
  • Binary
Instead of these datatypes crawled properties for managed datatypes are not created.

Step by step guidelines for creating search schema for custom content type's columns

  1. First create the content type columns into site column setting by clicking on create link.
2. Create required site columns with correct datatypes as mentioned above (Condition 1).

3. Create content types from Site setting>Web designer galleries>Site content types.

4. Add your columns from site columns.

5. Now Add this site content type to a document library or list for which you create this.

5. Now At least one item you have to create using this site column to so that crawl properties can be created. 

Note: With empty content type crawl property will not create.

6. Now go to Central admin> Manage service applications > Search service application.
From left site tool click on content sources

And start full crawl. Just ensure that your site collection has been added for crawl or not. If not added then add it.

thanks.


If any questions please comment.
















1 comment: