none
Accessing Managed Properties of Indexed Documents RRS feed

  • Question

  • Hi,

     

    I am in the process of implementing a customized search application on top of FAST Search Server for Sharepoint 2010. For this I need to save some of the parameters during indexing and access them during retrieval. So I was trying to figure out if I can make managed properties out of them and then access them from the query results. I could not find any approach for this. Could you please give some suggestions.

     

    Thanks,

    Sampath.

    Monday, November 21, 2011 4:56 AM

All replies

  • Hi Sampath,

    You are not giving much information here, but most metadata from your indexed items are available as crawled properties. And crawled properties can be mapped to managed properties which lets you use them in your search solution for showing the value of the managed property, query on it, use it as a refiner or sort on it.

    When you figure out the name, type and group for your crawled property it is fairly easy to map it to a managed property. If you give some more information we might can give a more direct advice :)

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Monday, November 21, 2011 8:33 AM
  • Hi Mikael,

    Thanks for the reply. Let me try to give some more details. Now I have a custom property, which are some additional tags, which I map to a managed property.  As part of my solution, I need to access these tags when I get a search result and then provide some customization based on the value of the tags. I was wondering if I can access the values of these properties or can they only be used as part of search/refiners in the query fields.

    The query results API seems to have only the documents that are part of the result but I did not find any way to access the actual values of the managed properties.

    Actually, I searched a little more and I seem to have found this..

    http://msdn.microsoft.com/en-us/library/ms579724.aspx

    As per this, I can specify what are the properties that are to be returned for each query result. Could you please confirm if this solves my use case?

    Regards,

    Sampath.

    Tuesday, November 22, 2011 4:54 AM
  • Hi,

    Correct, when using the web service API you add <Property> nodes to specify which managed properties you want per search result.

    If you download http://fastforsharepoint.codeplex.com/ it will help you to build the query packets. A nice application for testing and building xml query packets.

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Tuesday, November 22, 2011 7:30 AM