Forum Discussion

Manoj Mittal's avatar
Manoj Mittal
Copper Contributor
Apr 12, 2020

SharePoint Online Search API does not return custom choice and text column values

Details:

Facing elementary issue i.e.  Created custom site column and mapped i.e. crawl property with managed property but managed property does not return result and it always shows blank values but title column shows values.

 

Site Template: - Modern Team Site.

 Steps Followed:-

  1. Created Team Site in SharePoint Online
  2. Created one site column.
  3. Created custom list and added custom site column.
  4. Added 100+ records to list
  5. Activated all search related feature at Site & Web Level.
  6. Applied Re-Index entire site as well as custom list and wait for couple of hours.

 As I navigate to Search Schema -> Search for custom site column under Managed & Crawled Property.  I did mapping i.e. crawled property with managed property i.e. prefix ows_.

 

List Level Details:-

 List have searchable property is on.

Crawl Property

Crawl property has “Include in full – text index” property as true.

Type of Site Column:-

  1. Created few text and choice column as a site column and mapped into list to add content.
  2. Created a Managed Property against the site column and mapped with crawled property.

Note:- I tried PnP PowerShell to find out crawl log error at site as well as list level. It did not through any error

Reference:- https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpsearchcrawllog?view=sharepoint-ps

 

Search API:- https://mittal1201.sharepoint.com/sites/devinmobot/_api/search/query?querytext=%27GOLD0005*%27&rowlimit=100&selectproperties=%27Title,inmoproductnamemp%27

 

Screen Shot for Ref:-

Custom Managed Property return null . even its mapped properly with crawl property and having values also

 

SharePoint Online List Data:-

List Data

Resources