{"id":561,"date":"2016-09-24T13:16:01","date_gmt":"2016-09-24T13:16:01","guid":{"rendered":"http:\/\/blog.softreeconsulting.com\/?p=561"},"modified":"2016-09-24T13:16:01","modified_gmt":"2016-09-24T13:16:01","slug":"how-to-modify-search-results-search-core-result-web-part-sharepoint","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/","title":{"rendered":"How to modify the search results of a search core result web part in SharePoint?"},"content":{"rendered":"<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/09\/image.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-565\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/09\/image.jpg\" alt=\"image\" width=\"1200\" height=\"627\" \/><\/a>SharePoint generally facilitates 2 types of web parts that we can use to perform a search with in a predefined scope. One of those two parts is search box web part, which contains a text box and a dropdown menu. The text box is used for entering the search keywords while dropdown includes the value of search scopes. <em>Another web part from SharePoint is search core results web part that helps to display the search results. <\/em><\/p>\n<p>To classify a new scope, you have to navigate to the site settings of the root site, click on the search scope in the site collection administration, where you will see display groups containing search scopes. Click on the new scope button to add a new scope. The easiest way you can follow to do this is by navigating to the SharePoint Service Provider (SSP) present in the Central Administration Panel.<\/p>\n<p>Now, to show the search results in the search core results web part we need to set the properties \u201cTarget search results page URL\u201d of the search box web part .To set these properties go to Site Actions -&gt; Edit Page -&gt; Modify Shared Web part (of search box) -&gt; Miscellaneous. , provide the value for the properties (the value will be the URL of the page where the search core results web part is present).<\/p>\n<p>You need to set the properties in the <strong>Target search results page URL <\/strong>to show the search results in the search core results web part, which you can do by navigating to the search box web part. In order to allocate the properties, navigate to <strong>Site Actions -&gt; Edit Page -&gt; Modify Shared Web part (of search box) -&gt; Miscellaneous<\/strong>, subsequently set the value to the properties (set the URL of the page, where the value of the properties is present).<\/p>\n<p>For instance, you have classified a search scope that is pointing to a list (\u201cTest Scope\u201d to a \u201cTest List\u201d). Then the search will be acted upon on the list of the items. Now let\u2019s say, you performed a search, then the results will display the link and specific items, which contain the exact search keywords.<\/p>\n<p>However, if you want your web part to show the details of the list item in an organized format then all you have to do is to put the value of the list items in the search core result web part.<\/p>\n<p><strong>Step -1:<\/strong><\/p>\n<p>To make this column value available in the search core result web part we need to add the \u201cManaged Properties\u201d in the \u201cMetadata Property Mappings\u201d. To add the Managed Properties Go to the<\/p>\n<p>To make the above mentioned value accessible in the search core result web part, you ought to append the \u201cManaged Properties\u201d in the mappings of \u201cMeta Data Property\u201d. To affix this value navigate to the<\/p>\n<p>Central Administration =&gt; SSP =&gt; Search Setting s =&gt; Metadata property mappings =&gt; New Managed Property =&gt; give the Property Name =&gt; choose the Type(The type will be alike to the list column type) =&gt; Hit on Add Mappings =&gt; choose the column from the crawled property (Column name will have a prefix ows_ColumnName) =&gt; ok.<\/p>\n<p><strong>Step \u2013 2 :<\/strong><\/p>\n<p>Now navigate to the search core result web part page\u00a0 and subsequently Click on Site Actions =&gt; Edit page = &gt; Modify Shared Web part =&gt; navigate to the Result Query Options =&gt; Hit the Selected Columns , then attach the field inside the columns tag .<\/p>\n<table style=\"height: 221px;\" width=\"570\">\n<tbody>\n<tr>\n<td width=\"597\">&lt;Columns&gt;<\/p>\n<p>&lt;Column Name=&#8221;propertyname&#8221;\/&gt;<\/p>\n<p>\u2026&#8230;..<\/p>\n<p>\u2026&#8230;&#8230;.<\/p>\n<p>&lt;\/Columns&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step-3<\/strong><\/p>\n<p>Now open the XSL Editor and reinstate with the following code.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"628\">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;\u00a0&lt;xsl:stylesheet version=&#8221;1.0&#8243; xmlns:xsl=&#8221;http:\/\/www.w3.org\/1999\/XSL\/Transform&#8221;&gt;\u00a0&lt;xsl:output method=&#8221;xml&#8221; version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; indent=&#8221;yes&#8221;\/&gt;\u00a0&lt;xsl:template match=&#8221;\/&#8221;&gt;\u00a0&lt;xmp&gt;&lt;xsl:copy-of select=&#8221;*&#8221;\/&gt;&lt;\/xmp&gt;\u00a0&lt;\/xsl:template&gt;\u00a0&lt;\/xsl:stylesheet&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step \u2013 4:<\/strong><\/p>\n<p>Now you have to insert the DataFormWebpart in a page (inside the SharePoint designer). In the \u201cData Source Library \u201c Task Pane go the \u201cXML Files\u201d section click on the \u201cAdd an XML file\u201d and add the XML file.<\/p>\n<p>Now click on the XML file and then go for the \u201cShow Data\u201d. Then choose the columns which you would like to illustrate in search result page (At this point you can see the columns which you had previously attached in the Metadata property). Now choose the select the view option from the \u201cInsert selected Field as\u201d. By modifying the XSLT of the DataFormWebPart, you can format the columns easily.<\/p>\n<p><strong>Step \u2013 5: <\/strong><\/p>\n<p>In the DataFormWebPart copy the codes between the &lt;xsl:stylesheet&gt; &lt;\/xsl:stylesheet&gt; tag. Now replace the code present between the &lt;xsl:stylesheet&gt; &lt;\/xsl:stylesheet&gt; tag \u2018s with the copied content(in the the XSL Editor of the Search Core Results web part) .<\/p>\n<p>That\u2019s it\u2026Now you will see the search results will be in same format which you have set in the DataFormWebpart.<\/p>\n<p><em><a href=\"http:\/\/softreeconsulting.com\/\">Softree Technology <\/a>employs SharePoint consultants, who are experienced in writing for a multiplicity of SharePoint verticals including technical, promotional, creative, branding content, cataloguing and ethical media comprising journalism.<\/em><\/p>\n<p><em>With more than 10 years of industry experience these professionals have the best resources to deliver optimum results. They have been satisfying customers with some of the best SharePoint Strategies. In case you need experts for Offshore development for SharePoint 2016, we have got you covered.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint generally facilitates 2 types of web parts that we can use to perform a search with in a predefined scope. One of those two parts is search box web part, which contains a text box and a dropdown menu. The text box is used for entering the search keywords while dropdown includes the value of search scopes. Another web [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,127,43],"tags":[146,147],"class_list":["post-561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-office-365","category-sharepoint","tag-search-core-result-web-part","tag-search-results"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to modify the search results of a search core result web part in SharePoint? - Softree Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to modify the search results of a search core result web part in SharePoint? - Softree Technology\" \/>\n<meta property=\"og:description\" content=\"SharePoint generally facilitates 2 types of web parts that we can use to perform a search with in a predefined scope. One of those two parts is search box web part, which contains a text box and a dropdown menu. The text box is used for entering the search keywords while dropdown includes the value of search scopes. Another web [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-24T13:16:01+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to modify the search results of a search core result web part in SharePoint? - Softree Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/","og_locale":"en_US","og_type":"article","og_title":"How to modify the search results of a search core result web part in SharePoint? - Softree Technology","og_description":"SharePoint generally facilitates 2 types of web parts that we can use to perform a search with in a predefined scope. One of those two parts is search box web part, which contains a text box and a dropdown menu. The text box is used for entering the search keywords while dropdown includes the value of search scopes. Another web [&hellip;]","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/","og_site_name":"Softree Technology","article_published_time":"2016-09-24T13:16:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"How to modify the search results of a search core result web part in SharePoint?","datePublished":"2016-09-24T13:16:01+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/"},"wordCount":925,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#primaryimage"},"thumbnailUrl":"","keywords":["search core result web part","search results"],"articleSection":["All","Office 365","SharePoint"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/","name":"How to modify the search results of a search core result web part in SharePoint? - Softree Technology","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#primaryimage"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#primaryimage"},"thumbnailUrl":"","datePublished":"2016-09-24T13:16:01+00:00","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/how-to-modify-search-results-search-core-result-web-part-sharepoint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to modify the search results of a search core result web part in SharePoint?"}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":0,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}