4.6 QueryEx

The protocol client might query for documents which contains word "SharePoint".

The issued query would be: SharePoint

For this scenario, the protocol client sends the following request message:

 <QueryPacket xmlns="urn:Microsoft.Search.Query">
   <Query>
     <SupportedFormats>
       <Format>urn:Microsoft.Search.Response.Document:Document</Format>
     </SupportedFormats>
     <Context>
       <QueryText type="STRING" language="en-us">sharepoint</QueryText>
     </Context>
     <Range>
       <StartAt>1</StartAt>
       <Count>2</Count>
     </Range>
     <Properties>
       <Property name="path"/>
       <Property name="title"/>
     </Properties>
     <EnableStemming>true</EnableStemming>
     <TrimDuplicates>true</TrimDuplicates>
     <IgnoreAllNoiseQuery>true</IgnoreAllNoiseQuery>
     <ImplicitAndBehavior>true</ImplicitAndBehavior>
   </Query>
 </QueryPacket>
  

This might be a protocol server’s response to this message:

 
 <?xml version="1.0" encoding="utf-8" ?>
  <DataSet xmlns="http://microsoft.com/webservices/OfficeServer/QueryService">
    <xs:schema id="Results" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
      <xs:element name="Results" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:QueryTerms="sharepoint;sharepoint;" msprop:IgnoredNoiseWords="" msprop:Keyword="" msprop:QueryModification="" msprop:ElapsedTime="3646" msprop:Definition="" msprop:SpellingSuggestion="">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element name="RelevantResults" msprop:TotalRows="30" msprop:IsTotalRowsExact="False">
              <xs:complexType>
                <xs:sequence>
                 <xs:element name="path" type="xs:string" minOccurs="0" />
                 <xs:element name="title" type="xs:string" minOccurs="0" />
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </xs:choice>
       </xs:complexType>
     </xs:element>
   </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
      <Results xmlns="">
        <RelevantResults diffgr:id="RelevantResults1" msdata:rowOrder="0">
         <path>file://back/scratch/ddoorn/backup/giving it control v2.docx</path>
         <title>Giving IT Control</title>
       </RelevantResults>
       <RelevantResults diffgr:id="RelevantResults2" msdata:rowOrder="1">
         <path>file://back/scratch/ddoorn/backup/l0 dfd.vsd</path>
         <title>Sharepoint Search DFD</title>
       </RelevantResults>
     </Results>
   </diffgr:diffgram>
 </DataSet>