1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
  
     | 
    
      <html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01084522"><META NAME="lcid" CONTENT="1033"><title>Microsoft.Search.Query Schema</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><h1>Microsoft.Search.Query Schema</h1><p>This topic contains the annotated text of the Microsoft.Search.Query.xsd schema file. For additional information about this schema, see <a href="rsxsdQueryDocs.htm" id="HV01087676" lcid=" ">Microsoft.Search.Query Schema Documentation</a>.</p><pre><code><?xml version="1.0" encoding="utf-8" ?>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
<!-- Schema: Query.xsd                                          -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:Microsoft.Search.Query" 
    xmlns="urn:Microsoft.Search.Query" elementFormDefault="qualified" 
    xmlns:t="urn:Microsoft.Search.Types">
    <xsd:annotation>
        <xsd:documentation>
            This document is provided for informational purposes 
            only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
            AS TO THE INFORMATION IN THIS DOCUMENT. Complying with 
            all applicable copyright laws is the responsibility of 
            the user.  Microsoft may have patents, patent 
            applications, trademarks, copyrights, or other 
            intellectual property rights covering subject matter in 
            this document. Except as expressly provided in any 
            written license agreement from Microsoft, the furnishing
            of this document does not give you any license to these 
            patents, trademarks, copyrights, or other intellectual 
            property. (c) 2003 Microsoft Corporation. All rights 
            reserved.
        </xsd:documentation>
        <xsd:documentation>
            Defines a Query Packet from the client to a service 
            provider, which can in turn contain several individual
            queries corresponding to each of the provider's services.
        </xsd:documentation>
    </xsd:annotation>
    <xsd:import schemaLocation="Microsoft.Search.Types.xsd" 
        namespace="urn:Microsoft.Search.Types" />
    <xsd:import 
        schemaLocation="Microsoft.Search.Query.Office.Keywords.xsd"
        namespace="urn:Microsoft.Search.Query.Office.Keywords" />
    <xsd:import 
        schemaLocation="Microsoft.Search.Query.Office.Context.xsd" 
        namespace="urn:Microsoft.Search.Query.Office.Context" />
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Root Element: QueryPacket                         -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:element name="QueryPacket">
        <xsd:annotation>
            <xsd:documentation>
                A Query Packet from the client to a service provider,
                which can in turn contain several individual queries
                corresponding to each of the provider's services.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="Query" maxOccurs="unbounded" 
                    type="QueryType">
                    <xsd:annotation>
                        <xsd:documentation>
                            An individual query 
                            directed at a service.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
                <xsd:any namespace="##other" minOccurs="0" 
                    maxOccurs="unbounded" processContents="skip">
                    <xsd:annotation>
                        <xsd:documentation>
                            Any element in another namespace.  
                            Can be used for extensibility 
                            in the future.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:any>
            </xsd:sequence>
            <xsd:attribute name="revision" type="xsd:unsignedInt" 
                use="optional">
                <xsd:annotation>
                    <xsd:documentation>
                        Unsigned integer indicating the revision of 
                        the schema used in the request.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="build" type="t:String255" 
                use="optional">
                <xsd:annotation>
                    <xsd:documentation>
                        The build of the component used 
                        to generate the request.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
        </xsd:complexType>
    </xsd:element>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: QueryType                                   -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="QueryType">
        <xsd:annotation>
            <xsd:documentation>
                Describes an individual query directed at a service.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="QueryId" type="t:String255" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Unique ID identifying the query.  Can be used
                        for tracking purposes.  Office always uses a 
                        GUID.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="OriginatorId" type="t:String255" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        The service should be able to uniquely 
                        identify the client through this id.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="SupportedFormats" 
                type="SupportedFormatsType">
                <xsd:annotation>
                    <xsd:documentation>
                        Formats that the client understands 
                        for the response.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Context" type="ContextType" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Context information, 
                        including the actual query.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Range" type="RangeType" 
                minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        Range information, including the number of 
                        results expected.  Office will never request
                        more than one range.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:any namespace="##other" 
                minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  Office 
                        will emit elements in the OfficeContext and 
                        Keywords namespaces here.  This area can 
                        also be used for extensibility.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
        <xsd:attribute name="domain" 
            type="t:String255" use="optional">
            <xsd:annotation>
                <xsd:documentation>
                    A unique domain identifier for the service 
                    handling the query.  The Response from the s
                    ervice should have a matching domain attribute.
                </xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: SupportedFormatsType                        -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="SupportedFormatsType">
        <xsd:annotation>
            <xsd:documentation>
                Describes any number of formats that the client 
                understands for the response.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Format" type="FormatType" 
                maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        Supported response elements (QNames).   
                        All recognized namespaces should be 
                        specified here.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:any namespace="##other" minOccurs="0" 
                maxOccurs="unbounded" processContents="skip">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  
                        Can be used for extensibility in the future.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: FormatType                                  -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="FormatType">
        <xsd:annotation>
            <xsd:documentation>
                Defines a supported format.  Normally this should 
                be treated as a fully qualified name 
                (namespace:localname).
            </xsd:documentation>
        </xsd:annotation>
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="revision" type="xsd:unsignedInt"
                    use="optional">
                    <xsd:annotation>
                        <xsd:documentation>
                            Unsigned integer indicating the 
                            revision of the schema used.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="build" type="t:String255" 
                    use="optional">
                    <xsd:annotation>
                        <xsd:documentation>
                            The build of the component used.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: ContextType                                 -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="ContextType">
        <xsd:sequence>
            <xsd:element name="QueryText" type="QueryTextType" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Query to perform search on.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="LanguagePreference" 
                type="xsd:language" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Language preference for the response.  This 
                        applies mainly to user interface elements, 
                        not to content.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Requery" type="RequeryType" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Requery data from the service being 
                        round-tripped through the client.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="OriginatorContext" 
                type="OriginatorContextType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        This piece of context will get round-tripped 
                        through the service and sent back.  Office 
                        currently does not emit this element.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:any namespace="##other" minOccurs="0" 
                maxOccurs="unbounded" processContents="skip">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  Can be 
                        used for extensibility in the future.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: QueryTextType                               -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="QueryTextType">
        <xsd:annotation>
            <xsd:documentation>
                Defines the query to perform search on.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="language" 
                    type="xsd:language" use="optional">
                    <xsd:annotation>
                        <xsd:documentation>
                            The language of the query string.  It is
                            Office's best attempt at deriving it.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="type" use="optional" 
                    default="STRING">
                    <xsd:annotation>
                        <xsd:documentation>
                            The type of query.  All queries generated
                             by Office are strings.
                         </xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                            <xsd:enumeration value="STRING">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        A simple string.  All queries
                                        generated by Office are 
                                        strings.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                            <xsd:enumeration value="ID">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        An ID.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                            <xsd:enumeration value="MSSQLFT">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        A SQL search string.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                            <xsd:enumeration value="XPATH">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        An XPath.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                            <xsd:enumeration value="BOOLEAN">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        A boolean.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                            <xsd:enumeration value="">
                                <xsd:annotation>
                                    <xsd:documentation>
                                        An unspecified type.
                                    </xsd:documentation>
                                </xsd:annotation>
                            </xsd:enumeration>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: RequeryType                                 -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="RequeryType">
        <xsd:annotation>
            <xsd:documentation>
                Defines requery data from the service being 
                round-tripped through the client.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="RequeryContext" 
                type="RequeryContextType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Server data being round-tripped 
                        by the client.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:any namespace="##other" minOccurs="0" 
                maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  Office 
                        will emit the ServiceParameters element here.
                        It contains all the forms data.  This area 
                        can also be used for extensibility.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: RequeryContextType                          -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="RequeryContextType">
        <xsd:annotation>
            <xsd:documentation>
                Defines the Requery Context that a service can have
                the client pass back, during a requery only.  It is
                an arbitrary XML data island.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:any namespace="##other" maxOccurs="unbounded" 
                processContents="skip">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  This is an
                        XML island the service is passing to the 
                        client for round-tripping.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: OriginatorContextType                       -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="OriginatorContextType">
        <xsd:annotation>
            <xsd:documentation>
                Defines context data from the client to be 
                round-tripped through the service.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:any namespace="##other" maxOccurs="unbounded" 
                processContents="skip">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  This is
                        an XML island the client passed to the 
                        service for round-tripping.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
    </xsd:complexType>
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Type: RangeType                                   -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsd:complexType name="RangeType">
        <xsd:annotation>
            <xsd:documentation>
                Defines the Range element containing information 
                about the results being requested.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="ResultType" type="t:String2048" 
                minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>
                        Optional string describing the type of 
                        result.  Office will not emit this element.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="StartAt" type="t:StartAtType" 
                default="1" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        The index of the initial result requested, 
                        based on '1' as the lowest result index.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Count" type="xsd:unsignedInt" 
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>
                        Total results of this type to return.  Note 
                        less than this number may be returned if 
                        there aren't enough and more than this number
                        may be returned due to policy restrictions.
                        If more are returned, the client should 
                        display them all.  Absence of count implies 
                        provider discretion.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:any namespace="##other" minOccurs="0" 
                maxOccurs="unbounded" processContents="skip">
                <xsd:annotation>
                    <xsd:documentation>
                        Any element in another namespace.  Can be 
                        used for extensibility in the future.
                    </xsd:documentation>
                </xsd:annotation>
            </xsd:any>
        </xsd:sequence>
        <xsd:attribute name="id" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation>
                    A unique ID for the Range.
                </xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>
</xsd:schema>
</code></pre><center><a href="XMLSchemaCopyright_HV01147162.htm">©2003-2004 Microsoft Corporation. All rights reserved.</a>  
Permission to copy, display and distribute this document is available at: <a 
href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&CTT=11&Origin=HV011232471033" 
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html> 
     |