Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In my advanced search properties, I can't find my site column that I have crawled and mapped to a managed property.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Looking up the list of managed properties requires more rights to the Search Service Application than most users have. So in order to avoid that problem MS has decided not to try to do that in the advanced search box web part.

Instead the list of properties are controlled by configuration of the web part.

On order for your managed property to show up you have to go to the advanced search page, put it into edit mode, select "Edit web part" on the "Advanced Search Box". Below the "Properties" header you then have the "Properties" property.

Click the elipsis (...) and copy the content of the textbox into a proper editor.
enter image description here

Add a <PropertyDef Name="NameOfYourProperty" DataType="TypeOfYourProperty" DisplayName="a matching label"/> for your managed property inside <PropertyDefs> and add a <PropertyRef Name="NameOfYourProperty" /> inside each <ResultType> where you want it to show up.

Copy the xml back, OK, OK, Save, Test and Publish

share|improve this answer
    
I did do that <PropertyDef Name="ITCategory" DataType="text" DisplayName="IT Category" /> But it is still not showing up. The site has been incrementally crawled and fully crawled. –  AndrewDieppa Jun 12 '12 at 17:38
    
Did you also do the ResultType part? Crawling doesn't matter SharePoint isn't using that until you're doing the search. –  Per Jakobsen Jun 12 '12 at 17:43
    
<ResultType DisplayName="All Results" Name="default"> <KeywordQuery/> <PropertyRef Name="Author" /> <PropertyDef Name="ITCategory" /> <PropertyRef Name="Description" /> <PropertyRef Name="FileName" /> <PropertyRef Name="Size" /> <PropertyRef Name="Path" /> <PropertyRef Name="Write" /> <PropertyRef Name="CreatedBy" /> <PropertyRef Name="ModifiedBy" /> </ResultType> Yep, I did. The custom site column works because I can search for it by doing the ITCategory:[desired query] –  AndrewDieppa Jun 12 '12 at 17:50
    
In the ResultType you have PropertyDef it should be PropertyRef –  Per Jakobsen Jun 12 '12 at 17:55
    
....wow I feel dumb. How did I miss that? It's working now. Thank you. –  AndrewDieppa Jun 12 '12 at 18:00
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.