Forum Discussion
vassp1980
Jun 19, 2024Copper Contributor
Question on pnp search in sharepoint
Hi Guys, I need some advice with an issue I am facing when setting up PNP Search. I have a SharePoint Document library that has : -Default columns such as TITLE, Modified etc. -A New "choice"...
michalkornet
Jun 21, 2024Iron Contributor
hi vassp1980 ,
to make a column ready for use in search, you should create it as a Site Column. If you have already created a column and do not want to change it, you can assign the crawled property of this column to one of the predefined managed properties, such as 'RefinableStringxx'.
Here is an interesting article on this topic:
vassp1980
Jun 23, 2024Copper Contributor
Hello mate,
Thanks so much for the information.
I did follow the link you sent me. I did create a column as a "site column" and named it "SCDocumentType" . I then got it available in the Library view as a column.
I then got the auto tagging of this column working as well. However, when I go to Admin centre > crawled properties, I still cant find this field as a "crawled property" even after hours creating the column.
Just in case, I did go to the pnp search result webpart, and I can't find it (expected, bcoz it isnt showing up as a crawled property, and it hasnt yet been mapped to refinable string).
Any advice on why I cant find this site column under "Crawled properties" yet? Hopefully I have not missed anything? Please help
- michalkornetJun 24, 2024Iron ContributorHi vassp1980, I will check it on my environment and let you know soon 🙂
- michalkornetJun 24, 2024Iron Contributor
vassp1980Ok, I had a similar issue, but after reindexing the library, I managed to get the column in managed properties, which could be used in the PnP Search web part.
Reindex library -> advanced options
New managed property
Selected properties in PnP Search webpart