Good Day!
I have the List on SharePoint Site. It’s enabled for showing in search results. I see its elements in Search Results Page.
I would like to show my custom column values in Search Results. The column name is “FTP_Path”. Type is single line text
- I looked this article https://docs.microsoft.com/en-us/SharePoint/search/how-to-display-values-from-custom-managed-properties-in-search-resultsoption-1
- I created Management Property named FTPPath with Search ability enabled. I added the crawled property ows_FTP_Path as mapped crawled property
- I go to the Site Setting -> Master Page Gallery -> Display Templates/Search and locate the Item_Default.html file
- Copy the Item_Default file and rename it to Item_Copy
- Open the file in a text editor and find the title tag. Change the title to TEST.
- At the end ofManagedPropertyMapping tag I added
,'FTP_Path':'FTPPath'</mso:ManagedPropertyMapping>
- Updated Table tag as follows
<table>
<tr>
<!—Some Another Item Properties -->
</tr>
<tr>
<td>
_#=ctx.CurrentItem.FTP_Path=#_
</td>
</tr>
</table>
- Itold SharePoint to use my new Item_Copy template. It is working fine.
And I can’t see FTP_Path column values in Search results…
When I look my search results page by FireBug, I see that td tag with “ftp” class is empty on the page.
<tr>
<td>
</td>
</r>
I looked this article https://www.eliostruyf.com/making-columns-searchable-for-the-list-or-library-searchbox/
and can’t understand, what is wrong.
Full content crawling didn’t help.
I would be grateful for any help.