Share via


ResubmitFlag Element in Microsoft.Search.Query Schema

Applies to: SharePoint Server 2010

In this article
Attributes
Child Elements
Parent Elements
Element Information

The effect of an automatic resubmit is that the query is modified and automatically re-evaluated before results are returned to the client.

<ResubmitFlag value={NoResubmit|
                     EnableSpellcheckOnResubmit|
                     EnableSpellcheckSuggestOnResubmit|
                     EnableStemmingOnResubmit|
                     AddSynonymsAutomatically}>
</ResubmitFlag> 

Attributes

Attribute

Description

value

The action to take if no hits are found (see value Attribute below).

value Attribute

Value

Description

NoResubmit

Do not resubmit the query, but return with ZERO results.

If this attribute value is set, any other ResubmitFlag elements are ignored.

EnableSpellcheckOnResubmit

Resubmit the query with automatic spelling checking enabled. This corresponds to evaluating the query with EnableSpellCheck set to 4 when re-evaluating the query.

EnableSpellcheckSuggestOnResubmit

Resubmit the query with spelling checking enabled in suggest mode. This corresponds to evaluating the query with EnableSpellCheck set to 2 when re-evaluating the query.

Note

This option will still return a query result with zero hits.

EnableStemmingOnResubmit

Resubmit the query with stemming enabled. This corresponds to evaluating the query with EnableStemming set to true when re-evaluating the query.

Child Elements

None.

Parent Elements

ResubmitFlags Element in Microsoft.Search.Query Schema

Element Information

Schema name: Microsoft.Search.Query

Applies to: QueryServiceQuery() method (Microsoft.Search.Response.Document), QueryServiceQueryEx() method (Dataset)

Optional: Yes

See Also

Reference

QueryService

Concepts

Using the Query Web Service

Walkthrough: Querying SharePoint Search From a Client Application