For queries containing a simple list of search terms, set the type attribute for the QueryText element of the Microsoft.Search.Query schema to 'STRING'.
For SQL syntax queries, set the type attribute to 'MSSQLFT'.
If anonymous access is disabled for the Query web service's Windows SharePoint Services web application you must specify the credentials for the web service request using the Credentials property. The search results are trimmed based on the credentials of the current context of the request.
The default sort order is relevance rank. Only relevant results are returned; best bets are not included in the result set. If you want best bets included in the result set, use the QueryEx method.
Using elements from the Microsoft.Search.Query schema, you can specify the following for the result set returned by the Query web method:
-
Properties for sorting the results and the sort order direction, using the SortByProperty element.
-
Whether stemming is enabled, using the EnableStemming element.
-
Whether duplicates are collapsed, using the TrimDuplicates element.
-
Whether noise words are ignored, using the IgnoreAllNoiseQuery element.