2.2.5.9 ScopeCompilationState

Namespace: http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration

The ScopeCompilationState simple type contains information about the compilation state of a search scope.

 <xs:simpleType name="ScopeCompilationState">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Empty"/>
     <xs:enumeration value="Invalid"/>
     <xs:enumeration value="QueryExpanded"/>
     <xs:enumeration value="NeedsCompile"/>
     <xs:enumeration value="Compiled"/>
     <xs:enumeration value="NeedsRecompile"/>
   </xs:restriction>
 </xs:simpleType>

The following table specifies the allowable values for ScopeCompilationState:

Value

Meaning

Empty

The search scope is empty and there MUST be no search scope rules defined for the search scope.

Invalid

The search scope is invalid and there MUST be no search scope rules that have included attributes for compilation.

QueryExpanded

The search scope is expanded at query time. The search scope MUST have more than or equal to 1 and less than or equal to 25 search scope rules. The ScopeCompilationType for the search scope MUST be set to ConditionalCompile.

NeedsCompile

The search scope needs to be compiled. The ScopeCompilationType for the search scope MUST be set to AlwaysCompile.

Compiled

The search scope is compiled.

NeedsRecompile

The search scope needs to be recompiled