4.1 Searching for a Document by LinkId

The following example demonstrates a client request to search for a document by using the specified LinkId element (section 2.2.2.8) value (which in this example is the UNC path of the document), and the server response.

Request:

 <?xml version="1.0" encoding="utf-8"?>
 <Search xmlns="Search:" xmlns:A="DocumentLibrary:">
   <Store>
     <Name>DocumentLibrary</Name>
     <Query>
       <EqualTo>
         <A:LinkId/>
         <Value>\\EXCH-D-810\DocumentShare\document.txt</Value>
       </EqualTo>
     </Query>
     <Options>
       <Range>0-999</Range>
     </Options>
   </Store>
 </Search>

Response:

 <?xml version="1.0" encoding="utf-8"?>
 <Search 
 xmlns:documentlibrary="DocumentLibrary:" >
   <Status>1 Success</Status>
   <Response>
     <Store>
       <Status>1 Success</Status>
       <Result>
         <Properties>
           <documentlibrary:LinkId>\\exch-d-810\DocumentShare\document.txt</documentlibrary:LinkId>
           <documentlibrary:DisplayName>document.txt</documentlibrary:DisplayName>
           <documentlibrary:IsFolder>0</documentlibrary:IsFolder>
           <documentlibrary:CreationDate>2009-11-11T17:07:08.156Z</documentlibrary:CreationDate>
           <documentlibrary:LastModifiedDate>2009-11-11T17:07:17.613Z</documentlibrary:LastModifiedDate>
           <documentlibrary:IsHidden>0</documentlibrary:IsHidden>
           <documentlibrary:ContentLength>13</documentlibrary:ContentLength>
           <documentlibrary:ContentType>text/plain</documentlibrary:ContentType>
         </Properties>
       </Result>
       <Range>0-0</Range>
       <Total>1</Total>
     </Store>
   </Response>
 </Search>
Show: