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

I want to build an advanced search inside a web application. To do that, I connect to a Sharepoint 2010 instance running FAST and use the query web service.

I've tried to retrieve the search metadata to be able to build drop-downs with all possible values for e.g. the author property using the getSearchMetadata call but I only get a listing of the properties, not all the values they can take.

<Properties diffgr:id="Properties5"
    msdata:rowOrder="4" diffgr:hasChanges="inserted">
    <Name>Author</Name>
    <Description>author</Description>
    <Type>System.String</Type>
    <Retrievable>true</Retrievable>
    <FullTextQueriable>true</FullTextQueriable>
</Properties>

How can I query for all possible values of a managed property?

share|improve this question

1 Answer 1

You can use Refinements to find all the possible values for Managed Properties. Refinements will also include the counts for each Managed Property.

Look here for more details on how to configure: http://msdn.microsoft.com/en-us/library/ff394639%28v=office.14%29.aspx

share|improve this answer
    
Thanks for your reply. I am actually using refinements, but don't they apply to the current query only? E.g. if I search for the text 'management', only the refinements applicable for documents matching that query will be returned. –  Robert Munteanu Feb 13 '13 at 8:11
    
That's correct, the refinements will only show for the current query. Are you trying to find all the possible values of "management" before the user runs a query? –  Jason Rastovski Feb 13 '13 at 17:46
    
yes, I want to find out all the values before running a query. –  Robert Munteanu Feb 13 '13 at 19:44
    
If that's the case -> You're going to have to perform a search for "everything" and get your distinct list of "management" values from that. You could even do a search for "everything" and use a refinement on the "management" managed property to get all the distinct values & counts. –  Jason Rastovski Feb 13 '13 at 19:47
1  
Use the "hashtag" or "pound sign" (whatever you call it) # –  Jason Rastovski Feb 13 '13 at 21:51

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.