Steps to add properties to advanced search
Posted by ken zheng on May 27, 2008
1. Make sure you are on the Advanced Search page. Now, from the Site Actions, select Edit Page.
2. Click the edit link and select Modify Shared Web Part.
3. In the Advanced Search Box,
Click the Scopes and tick the show the scope picker box
expand Properties by clicking the + sign.
4. Click anywhere in the Properties box, a blue shaded “square” button (ellipsis) will appear. Click this button to view the content of the Properties box in an editor. You will see that the editor contains lot of text and there are quite a few sections in the code. We need to add the “Keywords” property to some of these sections in order to make it appear in the advanced search box properties.
5. Locate the <PropertyDefs> tag in the text and add the following property definition tag inside <PropertyDefs> and </PropertyDefs> tags.
<PropertyDef Name=”Tags” DataType=”text” DisplayName=”Tags”/>
6. Locate the tag <ResultTypes>. There is another tag inside this tag:
<ResultType DisplayName=”All Results” Name=”default”>
Add the following property reference tag just before the </ResultType> tag:
<PropertyRef Name=”Tags” />
7. Click OK to close the editor.
8. Click Apply and then OK to save the web part changes.
9. Click the Publish button to save your changes.
10. Now, go to the Advanced Search Page and search your documents using the keywords.
You need to add knowledge scope into advanced search group by:
1. In your browser, navigate to your site’s home page.
2. Click the Site Actions link, and then in Site Settings, click Modify All Site Settings.
3. In Site Collection Administration, click Search scopes.
4. Click Advanced Search to open the Edit Display Group page.
5. In the Scopes section, select Display for Knowledge.
6. Click OK to save your changes.
Jane said
I have two problems with the above instructions:
1) In step number 9 above, I do not have a Publish button, however my changes are saved anyway.
2. In step number 10 above, sub number 4, I do not have the Edit Display Group page, so I cannot go to the Scopes section to select Display for Knowledge.
Can someone guide me as to what I am missing?
liedong said
Hi Jane:
Make sure you go to “Site Collection Administration” which is top site level.You must have permission to access it.
SharePoint said
Hi,
I need to display my custom columns in my advance search Add Property restriction…
I have done the steps described by you but getting the error
“Property doesn’t exist or is used in a manner inconsistent with schema settings.”
Whare am I missing or doing wrong,Do I need to add something in central administrator?
Please help me, this is very urgent.
Thanks
ken zheng said
You need to modify the xml file, following this tutorial http://clintcherry.spaces.live.com/Blog/cns!AEC0DCBC460E45B9!476.entry?sa=281403812
mahendra said
Hi,
I have a problem in configuring the Advanced search Box.
when i am searching for document with a name which exists in the list it is throwing an error page not found.
As it is redirecting to http://results.aspx page and the page is not found to be opened by browser.
is there any configuration errors.
please provide some help to configure the advanced search box with out any errors.
Thanks,
nahi