locked
Getting distinct search results on particular field RRS feed

  • Question

  • Hi, I'm trying to get distinct authors property with the following query:

     

     

    <QueryPacket xmlns="urn:Microsoft.Search.Query">
     <Query>
      <SupportedFormats>
       <Format>urn:Microsoft.Search.Response.Document.Document</Format>
      </SupportedFormats>
      <Context>
       <QueryText type="FQL">forsiden</QueryText>
      </Context>
      <Properties>
       <Property name="Author" />
      </Properties>
      <Range>
       <StartAt>1</StartAt>
       <Count>200</Count>
      </Range>
      <TrimDuplicates onproperty="Author">true</TrimDuplicates>
     </Query>
    </QueryPacket>
    

     

    But I get the same author value multiple times. Why is it happens? I fond a strange sentence in MSDN:  The managed property must be of type Integer. 

    It is the case?

    Wednesday, May 18, 2011 12:17 PM