3.1.4.4 Query

This operation is used to run a search query and retrieve a list of crawled items that are relevant to the search query, together with associated information.

 <wsdl:operation name="Query">
   <wsdl:input message="tns:QuerySoapIn"/>
   <wsdl:output message="tns:QuerySoapOut"/>
 </wsdl:operation>

The protocol client sends a QuerySoapIn message and the protocol server responds with a QuerySoapOut (section 3.1.4.4.1.2) message, as follows:

The protocol client formulates a search query that specifies which crawled items to retrieve and which properties to retrieve for each crawled item (see section 3.1.1.1).

On receipt, the protocol server interprets the search query and assembles a list of crawled items that are relevant to the search query. Then it retrieves the properties that were specified in the search query for each result, and includes them in the response to the search query.

Alternatively, the request can fail. In that case the protocol server returns a response containing an error code as defined in section 2.2.5.5.