I want to get all content authors for the search query results. I'm using 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>
<TrimDuplicates onproperty="Author">true</TrimDuplicates>
</Query>
</QueryPacket>
But search results still contain duplicate values for Author property. Query is valid according to schema and TrimDuplicates part. What am I doing wrong?
EDIT
According to Mikael Svenson I'm trying to use such query:
<QueryPacket xmlns="urn:Microsoft.Search.Query">
<Query>
<SupportedFormats>
<Format>urn:Microsoft.Search.Response.Document.Document</Format>
</SupportedFormats>
<Context>
<QueryText type="FQL">us</QueryText>
</Context>
<Properties>
<Property name="Author" />
</Properties>
<EnableStemming>true</EnableStemming>
<EnableSpellCheck>false</EnableSpellCheck>
<IncludeRelevantResults>false</IncludeRelevantResults>
<Range>
<Count>20</Count>
</Range>
<IncludeRefinementResults>
<Refiners>
<Refiner>author</Refiner>
</Refiners>
</IncludeRefinementResults>
</Query>
</QueryPacket>
But resulting data set has no tables at all.
I cant set ResultProvider
to FASTSearch
because when I do so, it throws exception:
The search request was unable to connect to the Search Service.
Maybe refiners cant be used with search server? But in features it is listed.