Search API
3 TopicsSharePoint 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:- Created Team Site in SharePoint Online Created one site column. Created custom list and added custom site column. Added 100+ records to list Activated all search related feature at Site & Web Level. 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:- Created few text and choice column as a site column and mapped into list to add content. 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://santjust1.sharepoint.com/sites/devinmobot/_api/search/query?querytext=%27GOLD0005*%27&rowlimit=100&selectproperties=%27Title,inmoproductnamemp%27 Screen Shot for Ref:- SharePoint Online List Data:-2.1KViews0likes1CommentPnP Modern Search - Promoted Result - hyperlink doesn't resolve
I have a promoted result and it displays when expected but the link never gets resolved. Originally I had it linking to a stream site and I thought, ok I'll try a link on our tenant - still it would only resolve to "itself", so I tried a link in the same site collection and still it doesn't resolve. You see my title and the description but the link is back to the same page that I'm on. I must be missing something obvious. Originally I had the render the url as a banner but I've done it without that box being checked too. To be 100% clear, the promoted result is appearing, it's just that url is not being "consumed".1.4KViews0likes0CommentsSharePoint Online Hub Search - How do you call the search API and limit results to content contained
I am writing a web part that is surfacing all news pages on sites associated to a hub which have been tagged with a particular category (through page properties). How do I limit the results of my call to the Search API to only include content from sites associated to the hub? Do I have to first make calls to determine the sites associated to the hub (as per Mikael Svenson's post: https://www.techmikael.com/2018/04/working-with-hub-sites-and-search-api.html) and then use them in my query for news items, or is there an easier way? I cannot see any "Result Sources" that have been created by creating the hub, and I don't really want to have to manually maintain one as sites are associated/disassociated to the hub Thanks!2.4KViews0likes1Comment