SlideShare a Scribd company logo
SlideShare.netSeptember 2009SharePoint Search: Mapping Columns in SharePoint Lists To allow searching in specific document typesGeorge CatrombonContents TOC \o \"
1-3\"
 \h \z \u SUMMARY PAGEREF _Toc241928898 \h 3SETUP SHAREPOINT TO PREPARE FOR THE SEARCH PROBLEM PAGEREF _Toc241928899 \h 3CRAWL THE NEW CONTENT PAGEREF _Toc241928902 \h 9DEMONSTRATION OF THE SEARCH PROBLEM PAGEREF _Toc241928903 \h 12STATEMENT OF THE PROBLEM PAGEREF _Toc241928904 \h 14THE FIX – ADD MAPPING PAGEREF _Toc241928905 \h 14PERFORM A FULL CRAWL AGAIN TO CAPTURE OUR MAPPING PAGEREF _Toc241928906 \h 18PERFORM THE SEARCH AGAIN PAGEREF _Toc241928907 \h 18CONCLUSION PAGEREF _Toc241928909 \h 19SUMMARYThis tutorial explains how to overcome a specific problem with searching in SharePoint. The problem presents itself when a search is performed looking for:A key word in a document ( Example: search for the word “wireless”) Additionally specifying the type of document to search in when the types are defined in a list with a custom column. The solution to this search problem is to create a mapping in SharePoint on the custom column in the list through SharePoint Shared Services search configuration.  This tutorial will explain how to perform this mapping.SETUP SHAREPOINT TO PREPARE FOR THE SEARCH PROBLEMTo recreate the problem, we need to create a custom list in SharePoint.   We will name this library Document Types List as shown in Figure 1.  Then, we add two line items to the list as shown in Figure 1 below by clicking New > New Item.  Note that we have specified two document types: Profile and Policy. Figure 1Next, we need to create a document library, where the document types that are allowed to populate that library must be Profile or Procedure as denoted on our list in Figure 1.  So, we create a new library named Test Search Library as per SharePoint standard practice.  Refer to Figure 2 below.Figure 2 – Create a library as per standard practiceNow we need to create a column in this library, but the value that is allowed to appear in that column must be limited to the Document Types that are on the Document Types List, specifically, those denoted in the Document Types column (E.g. Profile or Procedure). No other types are allowed.To create this column, we click on Settings > Create Column as shown in Figure 3.Figure 3The column we specify will be created by clicking the radio button Lookup (information already on the site).  Then, in the Get information from list box, we will choose our list Document Types List.  Then, from the In this column drop down, select Document Type. We name the column Document Type. Refer to Figure 4 for all these settings.Figure 4After this, our document library will appear as in Figure 5. Note our new column named Document Type which is a lookup column. Q. What do we mean by a lookup column?A. When we add a document to the library, we will have to specify the type of document by means of a drop down list box bound to the column.  The drop down list box will contain the values Profile and Procedure from the Document Types List.  Recall that our library can only contain document types that are on that list. Our drop down list contains the only types we can pick from. We will see this action in a moment.Figure 5At this point, we create two files using Notepad.  Each file will contain a single word “wireless”.  We will save those two documents to a directory of our choice. The names of the documents are Profile.txt and Procedure.txt as shown in Figure 6. Figure 6Our NotePad documents (which both contain the word “wireless”) are shown in Figure 7 & 8.Figure 7Figure 8We now add those two documents to our Library by clicking Upload > Upload Document.  Browse to our notepad file Policy.txt and select it.  We will then get an additional web page where we need to specify the type of document it is as shown in Figure 9.Figure 9 – Note the dropdown is bound to the Document Type column in the Document Types List list. The result will be a new document added as shown in Figure 10.Figure 10We repeat the procedure to upload Procedure.txt, but we specify that the document type is Procedure rather than Profile.  Refer to Figure 11.Figure 11So, at this point, we have our custom list with custom column, and we have a custom library with two documents in it, one of each type from the list.  Now, we need to have SharePoint crawl the new content.  CRAWL THE NEW CONTENTTo force a crawl of the content we need to use Shared Services Administration as shown in Figure 12.Figure 12We click on SharedServices_Content (Default) (or whatever you named yours) link from Figure 12 and the result will be as in Figure 13.Figure 13We then click on Search Settings as shown in Figure 13.  This results in another screen as shown in Figure 14. Figure 14Click on Content sources and crawl Schedule as shown in Figure 14.  The resulting page will be as in Figure 15.  It is from this page that we force the crawls.Figure 15Right click on each line item as shown in Figure 16, and select Start Full Crawl.  See Figure 16.  Wait for the crawls to complete by refreshing the page.  When crawling is in progress, the result should look like Figure 17.Figure 16Figure 17 – crawling in progressWait for the crawls to complete.THE SEARCH PROBLEMNow, we want to perform an advanced search.  We do this from the Search tab on the site.  Click on the Search tab and the search page will appear as in Figure 18.Figure 18Now, we need a very specific search to demonstrate the problem.  We want to search for the word wireless, but only in the documents of type Profile.  We do not want to search in documents of type Procedure.  To do this, we need an advanced search.  Click on Advanced Search and the result is shown in Figure 19.  Enter the search as shown in Figure 19.   Note that we are specifying to only search in documents of type Profile. Figure 19 – only search documents of type Profile When we click the search button, nothing is returned as shown in Figure 20.Figure 20STATEMENT OF THE PROBLEMWe can now define what the problem is. The SharePoint search engine is very smart to index the copy of each of our two documents.  In fact, if you run a search just for the word “wireless”, our two documents will be found.   However, if you have a custom column as we do specifying the document types, then SharePoint is not smart enough to index that custom column.  Therefore, if you try to search with keyword wireless and specify a type of document to search in as we did in Figure 19, the search will fail.   You can also try to search the Procedure type and the result will fail as well.THE FIX – ADD MAPPINGTo fix this problem, we need to add mapping to the search configuration.  To add the mapping, we need to go to Shared Services as we did in Figure 13 and click on Search Settings.  In the resulting page as shown in Figure 21, click on Metadata property mappings. Figure 21The result is Figure 22.Figure 22We click on New Managed Property and the result is as in Figure 23.Figure 23We then proceed to configure a mapping.  Add the two fields as shown in Figure 24. Figure 24Then, click on the button Add Mapping.  This will result in a dialog box as shown in Figure 25.  In the Crawled Property Name text box, type ows_ and then click Find.  You will then be presented with a list of columns in the site, prefaced with the string ows_.  If we scroll down the list, we should see our custom column. See Figure 25Figure 25 – Our custom column is on the listThen, click on Allow this property to be used in all scopes. Refer to Figure 26. Figure 26This completes the mapping.PERFORM A FULL CRAWL AGAIN TO CAPTURE OUR MAPPINGPerform a full crawl as you did in Figure 16. Wait until it finishes. PERFORM THE SEARCH AGAINNow if you perform the search as we did in Figure 19, but use the mapping term mpDocumentType.  Now we see the search is successful as shown in Figure 27.NOTE: You may have to refresh your browser since the old page may be cached. Figure 27CONCLUSIONWe have demonstrated the search problem with SharePoint and have shown the solution.  Hopefully, readers will be able to apply this knowledge in the field.END DOCUMENT
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share
Tutorial Search With Custom Column Slide Share

More Related Content

PDF
Kaitie Watson Lab 2 2013
PDF
Analytics with Power BI and R
PPTX
Access lesson05
PDF
Events Registration System Part 1
PDF
Event Registration System Part 2
PPTX
Access lesson 06 Integrating Access
PPTX
Lesson Six Entering And Editing Data In Tables
PPT
Csphtp1 19
Kaitie Watson Lab 2 2013
Analytics with Power BI and R
Access lesson05
Events Registration System Part 1
Event Registration System Part 2
Access lesson 06 Integrating Access
Lesson Six Entering And Editing Data In Tables
Csphtp1 19

What's hot (10)

PDF
Data analysis accesssql_modeloff
PPTX
Lesson Four Setting Up Tables And Fields
PPT
Binding to multiple datasources on a single xPage
ODP
XPages - The Ties That Bind
PDF
Adding A New Field
PPTX
Mail merge
PDF
Microsoft Access 2010 - a jargon free guide
PPT
SugarCRM Lotus Notes Plug-In
PPTX
Brevity NDIS Software - Quick Start Guide
PPTX
Tutorial for using SQL in Microsoft Access
Data analysis accesssql_modeloff
Lesson Four Setting Up Tables And Fields
Binding to multiple datasources on a single xPage
XPages - The Ties That Bind
Adding A New Field
Mail merge
Microsoft Access 2010 - a jargon free guide
SugarCRM Lotus Notes Plug-In
Brevity NDIS Software - Quick Start Guide
Tutorial for using SQL in Microsoft Access
Ad

Viewers also liked (20)

PDF
everdo for ad
PDF
Сергей Котырев – Мои новые ошибки и что я узнал про менеджмент за прошедший год
PDF
Руслан Фазлыев – Как управлять собой, чтобы поручили управлять другими
PPT
Krishna Printernational Corporate Presentation
PPT
The Simple Life
PDF
Report Mi.Mo. - I cittadini Migliorano la Mobilità - 2011
PPT
Slovakia and eurcrisis _ba_23052012
PPT
10 Ways to Find Common Ground with Your Social Media Audience
PDF
Trompito 1
PPTX
Rome
PPTX
Cecyt 2008
PPT
More Press...Less Stress
PDF
Report Incontri Ravvicinati 2011
PPS
Home Projects (1)
PDF
Appca Presentation R Boyle July 2009
PPT
Paty y Paloma
PPS
Голос Галактики
PPT
PDF
Solving Business Problems for Our Clients, Each Step of the Way
PPT
About Blogs
everdo for ad
Сергей Котырев – Мои новые ошибки и что я узнал про менеджмент за прошедший год
Руслан Фазлыев – Как управлять собой, чтобы поручили управлять другими
Krishna Printernational Corporate Presentation
The Simple Life
Report Mi.Mo. - I cittadini Migliorano la Mobilità - 2011
Slovakia and eurcrisis _ba_23052012
10 Ways to Find Common Ground with Your Social Media Audience
Trompito 1
Rome
Cecyt 2008
More Press...Less Stress
Report Incontri Ravvicinati 2011
Home Projects (1)
Appca Presentation R Boyle July 2009
Paty y Paloma
Голос Галактики
Solving Business Problems for Our Clients, Each Step of the Way
About Blogs
Ad

Similar to Tutorial Search With Custom Column Slide Share (20)

PPTX
Find It With Share Point Search
PPT
SharePoint Jumpstart #2 Making Basic SharePoint Search Work
PPTX
How did you find that?! Optimizing your SharePoint content for search
PPTX
Optimizing Your Content for Search
PPTX
SharePoint Fest - Document Management with Content Types, Taxonomy and Search
PPTX
Let’s build a_search-based_application_in_share_point_2013_-_baltimorespug
PPTX
Enhance the way people collaborate with documents in share point
PDF
SPUnite17 Large Lists in SharePoint
PPTX
Lets build a_search-based_application_in_share_point_2013_-_spsdc[2]
PPTX
Essentials for the SharePoint Power User - SPTechCon San Francisco 2016
PPTX
#SPSLondon - Session 1 - Building an faq for end users
PPTX
SharePoint Metadata and Search Refiners SPSUTAH2013 Jan 2013
PPTX
Basic SharePoint search
PPTX
Enhancing Relevancy & End User Experience with SharePoint Search
PPTX
Essentials for the SharePoint Power User - NACollabSummit
PDF
Introducing Content Types Microsoft Windows Share Point Services
PPTX
SPConnections - Search Administration in SharePoint 2013
PPTX
SharePoint Search - August 2019 at Utah SharePoint User Group
PPTX
Find Information Faster Using SharePoint 2010 Search
PPTX
10 Things I Like in SharePoint 2013 Search
Find It With Share Point Search
SharePoint Jumpstart #2 Making Basic SharePoint Search Work
How did you find that?! Optimizing your SharePoint content for search
Optimizing Your Content for Search
SharePoint Fest - Document Management with Content Types, Taxonomy and Search
Let’s build a_search-based_application_in_share_point_2013_-_baltimorespug
Enhance the way people collaborate with documents in share point
SPUnite17 Large Lists in SharePoint
Lets build a_search-based_application_in_share_point_2013_-_spsdc[2]
Essentials for the SharePoint Power User - SPTechCon San Francisco 2016
#SPSLondon - Session 1 - Building an faq for end users
SharePoint Metadata and Search Refiners SPSUTAH2013 Jan 2013
Basic SharePoint search
Enhancing Relevancy & End User Experience with SharePoint Search
Essentials for the SharePoint Power User - NACollabSummit
Introducing Content Types Microsoft Windows Share Point Services
SPConnections - Search Administration in SharePoint 2013
SharePoint Search - August 2019 at Utah SharePoint User Group
Find Information Faster Using SharePoint 2010 Search
10 Things I Like in SharePoint 2013 Search

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
A Presentation on Artificial Intelligence
PPTX
MYSQL Presentation for SQL database connectivity
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Modernizing your data center with Dell and AMD
CIFDAQ's Market Insight: SEC Turns Pro Crypto
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Understanding_Digital_Forensics_Presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Network Security Unit 5.pdf for BCA BBA.
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
A Presentation on Artificial Intelligence
MYSQL Presentation for SQL database connectivity
“AI and Expert System Decision Support & Business Intelligence Systems”

Tutorial Search With Custom Column Slide Share

  • 1. SlideShare.netSeptember 2009SharePoint Search: Mapping Columns in SharePoint Lists To allow searching in specific document typesGeorge CatrombonContents TOC \o \" 1-3\" \h \z \u SUMMARY PAGEREF _Toc241928898 \h 3SETUP SHAREPOINT TO PREPARE FOR THE SEARCH PROBLEM PAGEREF _Toc241928899 \h 3CRAWL THE NEW CONTENT PAGEREF _Toc241928902 \h 9DEMONSTRATION OF THE SEARCH PROBLEM PAGEREF _Toc241928903 \h 12STATEMENT OF THE PROBLEM PAGEREF _Toc241928904 \h 14THE FIX – ADD MAPPING PAGEREF _Toc241928905 \h 14PERFORM A FULL CRAWL AGAIN TO CAPTURE OUR MAPPING PAGEREF _Toc241928906 \h 18PERFORM THE SEARCH AGAIN PAGEREF _Toc241928907 \h 18CONCLUSION PAGEREF _Toc241928909 \h 19SUMMARYThis tutorial explains how to overcome a specific problem with searching in SharePoint. The problem presents itself when a search is performed looking for:A key word in a document ( Example: search for the word “wireless”) Additionally specifying the type of document to search in when the types are defined in a list with a custom column. The solution to this search problem is to create a mapping in SharePoint on the custom column in the list through SharePoint Shared Services search configuration. This tutorial will explain how to perform this mapping.SETUP SHAREPOINT TO PREPARE FOR THE SEARCH PROBLEMTo recreate the problem, we need to create a custom list in SharePoint. We will name this library Document Types List as shown in Figure 1. Then, we add two line items to the list as shown in Figure 1 below by clicking New > New Item. Note that we have specified two document types: Profile and Policy. Figure 1Next, we need to create a document library, where the document types that are allowed to populate that library must be Profile or Procedure as denoted on our list in Figure 1. So, we create a new library named Test Search Library as per SharePoint standard practice. Refer to Figure 2 below.Figure 2 – Create a library as per standard practiceNow we need to create a column in this library, but the value that is allowed to appear in that column must be limited to the Document Types that are on the Document Types List, specifically, those denoted in the Document Types column (E.g. Profile or Procedure). No other types are allowed.To create this column, we click on Settings > Create Column as shown in Figure 3.Figure 3The column we specify will be created by clicking the radio button Lookup (information already on the site). Then, in the Get information from list box, we will choose our list Document Types List. Then, from the In this column drop down, select Document Type. We name the column Document Type. Refer to Figure 4 for all these settings.Figure 4After this, our document library will appear as in Figure 5. Note our new column named Document Type which is a lookup column. Q. What do we mean by a lookup column?A. When we add a document to the library, we will have to specify the type of document by means of a drop down list box bound to the column. The drop down list box will contain the values Profile and Procedure from the Document Types List. Recall that our library can only contain document types that are on that list. Our drop down list contains the only types we can pick from. We will see this action in a moment.Figure 5At this point, we create two files using Notepad. Each file will contain a single word “wireless”. We will save those two documents to a directory of our choice. The names of the documents are Profile.txt and Procedure.txt as shown in Figure 6. Figure 6Our NotePad documents (which both contain the word “wireless”) are shown in Figure 7 & 8.Figure 7Figure 8We now add those two documents to our Library by clicking Upload > Upload Document. Browse to our notepad file Policy.txt and select it. We will then get an additional web page where we need to specify the type of document it is as shown in Figure 9.Figure 9 – Note the dropdown is bound to the Document Type column in the Document Types List list. The result will be a new document added as shown in Figure 10.Figure 10We repeat the procedure to upload Procedure.txt, but we specify that the document type is Procedure rather than Profile. Refer to Figure 11.Figure 11So, at this point, we have our custom list with custom column, and we have a custom library with two documents in it, one of each type from the list. Now, we need to have SharePoint crawl the new content. CRAWL THE NEW CONTENTTo force a crawl of the content we need to use Shared Services Administration as shown in Figure 12.Figure 12We click on SharedServices_Content (Default) (or whatever you named yours) link from Figure 12 and the result will be as in Figure 13.Figure 13We then click on Search Settings as shown in Figure 13. This results in another screen as shown in Figure 14. Figure 14Click on Content sources and crawl Schedule as shown in Figure 14. The resulting page will be as in Figure 15. It is from this page that we force the crawls.Figure 15Right click on each line item as shown in Figure 16, and select Start Full Crawl. See Figure 16. Wait for the crawls to complete by refreshing the page. When crawling is in progress, the result should look like Figure 17.Figure 16Figure 17 – crawling in progressWait for the crawls to complete.THE SEARCH PROBLEMNow, we want to perform an advanced search. We do this from the Search tab on the site. Click on the Search tab and the search page will appear as in Figure 18.Figure 18Now, we need a very specific search to demonstrate the problem. We want to search for the word wireless, but only in the documents of type Profile. We do not want to search in documents of type Procedure. To do this, we need an advanced search. Click on Advanced Search and the result is shown in Figure 19. Enter the search as shown in Figure 19. Note that we are specifying to only search in documents of type Profile. Figure 19 – only search documents of type Profile When we click the search button, nothing is returned as shown in Figure 20.Figure 20STATEMENT OF THE PROBLEMWe can now define what the problem is. The SharePoint search engine is very smart to index the copy of each of our two documents. In fact, if you run a search just for the word “wireless”, our two documents will be found. However, if you have a custom column as we do specifying the document types, then SharePoint is not smart enough to index that custom column. Therefore, if you try to search with keyword wireless and specify a type of document to search in as we did in Figure 19, the search will fail. You can also try to search the Procedure type and the result will fail as well.THE FIX – ADD MAPPINGTo fix this problem, we need to add mapping to the search configuration. To add the mapping, we need to go to Shared Services as we did in Figure 13 and click on Search Settings. In the resulting page as shown in Figure 21, click on Metadata property mappings. Figure 21The result is Figure 22.Figure 22We click on New Managed Property and the result is as in Figure 23.Figure 23We then proceed to configure a mapping. Add the two fields as shown in Figure 24. Figure 24Then, click on the button Add Mapping. This will result in a dialog box as shown in Figure 25. In the Crawled Property Name text box, type ows_ and then click Find. You will then be presented with a list of columns in the site, prefaced with the string ows_. If we scroll down the list, we should see our custom column. See Figure 25Figure 25 – Our custom column is on the listThen, click on Allow this property to be used in all scopes. Refer to Figure 26. Figure 26This completes the mapping.PERFORM A FULL CRAWL AGAIN TO CAPTURE OUR MAPPINGPerform a full crawl as you did in Figure 16. Wait until it finishes. PERFORM THE SEARCH AGAINNow if you perform the search as we did in Figure 19, but use the mapping term mpDocumentType. Now we see the search is successful as shown in Figure 27.NOTE: You may have to refresh your browser since the old page may be cached. Figure 27CONCLUSIONWe have demonstrated the search problem with SharePoint and have shown the solution. Hopefully, readers will be able to apply this knowledge in the field.END DOCUMENT