次の方法で共有


How to setup a custom search for SharePoint sub-site separately?

I have created a new sub-site named "Resume Database" under my SharePoint site collection. I added a document library named Resume Upload with the following metadata column:-

  1. Resume Name
  2. Resume Experience
  3. Resume Category

 

Uploaded some documents and set the metadata properties.

Added a new content source named "Resume ContentSource". While creating the content source, I setup the "Content Source Type" property to "Web Sites" else SharePoint won't allow me to add a SharePoint sub-site to a new content source.

Here is the screen shot for the rest of properties :-

Crawled the content.

 

Created new managed property name ReusmeCategory, ResumeExperience and ResumeName.

 

New ResumeCategory property attached with the crawled property named ows_Resume_x0020_category (Text).

 

Created a "New Scope" named "Resume Scope" and added in the shared scope.

Go to your site collection -> Site Settings -> Search Scope. Create a new Display Group and add a Resume Scope as default scope.

Here is screen shot for the "Resume scope" Display Group:-

You can verify that the Resume scope is coming from the SSP and clicking "Edit Properties and Rules" as per the following image

 

 

Please re-crawl the "Resume ContentSource" and checked the managed properties named ResumeName, ResumeCategory, ResumeExperience shows some value:-

Because I have uploaded the two documents, the "Content using this property" is filled with the value 2.

Create a search center site and go you "Advance Search" page and add the "Resume Scope" and all three managed property as following :-

Click on the "Modify the Web part" and change the display group to" Resume Scope"

Change the "Properties"

With the following xml

<?xml
version="1.0"
encoding="utf-8"?>

<root
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">

<Option
Name="AllowOpContains"
Value="False"/>

<LangDefs>

<LangDef
DisplayName="Arabic"
LangID="1"/>

<LangDef
DisplayName="Bengali"
LangID="69"/>

<LangDef
DisplayName="Bulgarian"
LangID="2"/>

<LangDef
DisplayName="Catalan"
LangID="3"/>

<LangDef
DisplayName="Chinese"
LangID="4"/>

<LangDef
DisplayName="Croatian/Serbian"
LangID="26"/>

<LangDef
DisplayName="Czech"
LangID="5"/>

<LangDef
DisplayName="Danish"
LangID="6"/>

<LangDef
DisplayName="Dutch"
LangID="19"/>

<LangDef
DisplayName="Finnish"
LangID="11"/>

<LangDef
DisplayName="French"
LangID="12"/>

<LangDef
DisplayName="German"
LangID="7"/>

<LangDef
DisplayName="Greek"
LangID="8"/>

<LangDef
DisplayName="Gujrati"
LangID="71"/>

<LangDef
DisplayName="Hebrew"
LangID="13"/>

<LangDef
DisplayName="Hindi"
LangID="57"/>

<LangDef
DisplayName="Hungarian"
LangID="14"/>

<LangDef
DisplayName="Icelandic"
LangID="15"/>

<LangDef
DisplayName="Indonesian"
LangID="33"/>

<LangDef
DisplayName="Italian"
LangID="16"/>

<LangDef
DisplayName="Japanese"
LangID="17"/>

<LangDef
DisplayName="Kannada"
LangID="75"/>

<LangDef
DisplayName="Korean"
LangID="18"/>

<LangDef
DisplayName="Latvian"
LangID="38"/>

<LangDef
DisplayName="Lithuanian"
LangID="39"/>

<LangDef
DisplayName="Malay"
LangID="62"/>

<LangDef
DisplayName="Malayalam"
LangID="76"/>

<LangDef
DisplayName="Marathi"
LangID="78"/>

<LangDef
DisplayName="Norwegian"
LangID="20"/>

<LangDef
DisplayName="Polish"
LangID="21"/>

<LangDef
DisplayName="Portugese"
LangID="22"/>

<LangDef
DisplayName="Punjabi"
LangID="70"/>

<LangDef
DisplayName="Romanian"
LangID="24"/>

<LangDef
DisplayName="Russian"
LangID="25"/>

<LangDef
DisplayName="Slovak"
LangID="27"/>

<LangDef
DisplayName="Slovenian"
LangID="36"/>

<LangDef
DisplayName="Spanish"
LangID="10"/>

<LangDef
DisplayName="Swedish"
LangID="29"/>

<LangDef
DisplayName="Tamil"
LangID="73"/>

<LangDef
DisplayName="Telugu"
LangID="74"/>

<LangDef
DisplayName="Thai"
LangID="30"/>

<LangDef
DisplayName="Turkish"
LangID="31"/>

<LangDef
DisplayName="Ukrainian"
LangID="34"/>

<LangDef
DisplayName="Urdu"
LangID="32"/>

<LangDef
DisplayName="Vietnamese"
LangID="42"/>

</LangDefs>

<Languages>

<Language
LangRef="12"/>

<Language
LangRef="7"/>

<Language
LangRef="17"/>

<Language
LangRef="10"/>

</Languages>

<PropertyDefs>

<PropertyDef
Name="Path"
DataType="text"
DisplayName="URL"/>

<PropertyDef
Name="Size"
DataType="integer"
DisplayName="Size"/>

<PropertyDef
Name="Write"
DataType="datetime"
DisplayName="Last Modified Date"/>

<PropertyDef
Name="FileName"
DataType="text"
DisplayName="Name"/>

<PropertyDef
Name="Description"
DataType="text"
DisplayName="Description"/>

<PropertyDef
Name="Title"
DataType="text"
DisplayName="Title"/>

<PropertyDef
Name="Author"
DataType="text"
DisplayName="Author"/>

<PropertyDef
Name="DocSubject"
DataType="text"
DisplayName="Subject"/>

<PropertyDef
Name="DocKeywords"
DataType="text"
DisplayName="Keywords"/>

<PropertyDef
Name="DocComments"
DataType="text"
DisplayName="Comments"/>

<PropertyDef
Name="Manager"
DataType="text"
DisplayName="Manager"/>

<PropertyDef
Name="Company"
DataType="text"
DisplayName="Company"/>

<PropertyDef
Name="Created"
DataType="datetime"
DisplayName="Created Date"/>

<PropertyDef
Name="CreatedBy"
DataType="text"
DisplayName="Created By"/>

<PropertyDef
Name="ModifiedBy"
DataType="text"
DisplayName="Last Modified By"/>

<PropertyDef
Name="ResumeName"
DataType="text"
DisplayName="Resume Name"/>

<PropertyDef
Name="ResumeExpereince"
DataType="text"
DisplayName="Resume Expereince"/>

<PropertyDef
Name="ResumeCategory"
DataType="text"
DisplayName="Resume Category"/>

</PropertyDefs>

<ResultTypes>

<ResultType
DisplayName="All Results"
Name="default">

<Query/>

<PropertyRef
Name="Author" />

<PropertyRef
Name="Description" />

<PropertyRef
Name="FileName" />

<PropertyRef
Name="Size" />

<PropertyRef
Name="Path" />

<PropertyRef
Name="Created" />

<PropertyRef
Name="Write" />

<PropertyRef
Name="CreatedBy" />

<PropertyRef
Name="ModifiedBy" />

<PropertyRef
Name="ResumeName" />

<PropertyRef
Name="ResumeExpereince"/>

<PropertyRef
Name="ResumeCategory" />

</ResultType>

<ResultType
DisplayName="Documents"
Name="documents">

<Query>IsDocument=1</Query>

<PropertyRef
Name="Author" />

<PropertyRef
Name="DocComments"/>

<PropertyRef
Name="Description" />

<PropertyRef
Name="DocKeywords"/>

<PropertyRef
Name="FileName" />

<PropertyRef
Name="Size" />

<PropertyRef
Name="DocSubject"/>

<PropertyRef
Name="Path" />

<PropertyRef
Name="Created" />

<PropertyRef
Name="Write" />

<PropertyRef
Name="CreatedBy" />

<PropertyRef
Name="ModifiedBy" />

<PropertyRef
Name="Title"/>

<PropertyRef
Name="Manager" />

<PropertyRef
Name="Company"/>

</ResultType>

<ResultType
DisplayName="Word Documents"
Name="worddocuments">

<Query>FileExtension='doc' Or FileExtension='docx' Or FileExtension='dot'</Query>

<PropertyRef
Name="Author" />

<PropertyRef
Name="DocComments"/>

<PropertyRef
Name="Description" />

<PropertyRef
Name="DocKeywords"/>

<PropertyRef
Name="FileName" />

<PropertyRef
Name="Size" />

<PropertyRef
Name="DocSubject"/>

<PropertyRef
Name="Path" />

<PropertyRef
Name="Created" />

<PropertyRef
Name="Write" />

<PropertyRef
Name="CreatedBy" />

<PropertyRef
Name="ModifiedBy" />

<PropertyRef
Name="Title"/>

<PropertyRef
Name="Manager" />

<PropertyRef
Name="Company"/>

</ResultType>

<ResultType
DisplayName="Excel Documents"
Name="exceldocuments">

<Query>FileExtension='xls' Or FileExtension='xlsx' Or FileExtension='xlt'</Query>

<PropertyRef
Name="Author" />

<PropertyRef
Name="DocComments"/>

<PropertyRef
Name="Description" />

<PropertyRef
Name="DocKeywords"/>

<PropertyRef
Name="FileName" />

<PropertyRef
Name="Size" />

<PropertyRef
Name="DocSubject"/>

<PropertyRef
Name="Path" />

<PropertyRef
Name="Created" />

<PropertyRef
Name="Write" />

<PropertyRef
Name="CreatedBy" />

<PropertyRef
Name="ModifiedBy" />

<PropertyRef
Name="Title"/>

<PropertyRef
Name="Manager" />

<PropertyRef
Name="Company"/>

</ResultType>

<ResultType
DisplayName="Presentations"
Name="presentations">

<Query>FileExtension='ppt'</Query>

<PropertyRef
Name="Author" />

<PropertyRef
Name="DocComments"/>

<PropertyRef
Name="Description" />

<PropertyRef
Name="DocKeywords"/>

<PropertyRef
Name="FileName" />

<PropertyRef
Name="Size" />

<PropertyRef
Name="DocSubject"/>

<PropertyRef
Name="Path" />

<PropertyRef
Name="Created" />

<PropertyRef
Name="Write" />

<PropertyRef
Name="CreatedBy" />

<PropertyRef
Name="ModifiedBy" />

<PropertyRef
Name="Title"/>

<PropertyRef
Name="Manager" />

<PropertyRef
Name="Company"/>

</ResultType>

</ResultTypes>

</root>

 

Change the result URL (If required)

 

Go to advance search page and set the properties as following :-