locked
Get similar results RRS feed

  • General discussion

  • Hi,

    i am trying to get similar results for a document. How do i have to build my query to get similar results?

    <QueryPacket xmlns='urn:Microsoft.Search.Query'>
    	<Query>
    
    	<SupportedFormats>
    		<Format revision='1'> urn:Microsoft.Search.Response.Document:Document</Format>
    	</SupportedFormats>
    	
    	<Context>
    		<QueryText language='en' type='FQL'>" & query & "</QueryText>
    	</Context>
            
    	<ResultProvider>FASTSearch</ResultProvider>" & _
            <TrimDuplicates>false</TrimDuplicates>"
    
    	<FindSimilar>
            	<SimilarTo>" & docvector & "</SimilarTo>
    	</FindSimilar>
    
    	</Query>
    </QueryPacket>

    What do i have to put in the Context > QueryText part ?

    For example: I have a document1.docx. I find this one and get the docvector information. After that i put the docvector info into a new query in the Findsimilar > SimilarTo Section.

    But what do i have to put in the Context > Query section? Do i need to provide anything here? Can someone give me a sample? There is nothing you can find about FindSimilar on the net :(



    Best regards,
    Yavuz B.

    My Sharepoint and Enterprise 2.0 Blog http://www.bogazci.com | Microsoft Sharepoint Resources & Blog List


    • Edited by [Yavuz B.] Friday, February 21, 2014 12:25 PM
    Thursday, February 20, 2014 10:13 PM

All replies

  • Without any informationen in Context > Query i get en error. Thats means for me, that there has to placed the original query string.

    I did the following:

    Query for a specific document, the get its deocvector information and put it back in a new query additionally to my query string.

    And this seems to work.


    Best regards,
    Yavuz B.

    My Sharepoint and Enterprise 2.0 Blog http://www.bogazci.com | Microsoft Sharepoint Resources & Blog List

    Wednesday, February 26, 2014 2:17 PM