searchInfo
指定如何設定與指定屬性定義相關的Windows搜尋引擎。 如果未提供searchInfo元素,則屬性不會包含在Windows搜尋引擎中。 此元素已針對 Windows 7 變更。
Windows 7 的語法
<!-- searchInfo for Windows 7-->
<xs:element name="searchInfo">
<xs:complexType>
<xs:attribute name="inInvertedIndex" type="xs:boolean" default="false"/>
<xs:attribute name="isColumn" type="xs:boolean" default="false"/>
<xs:attribute name="isColumnSparse" type="xs:boolean" default="true">
<xs:annotation>
<xs:documentation>
isColumnSparse: Default is true. If the property is multi-valued, this is always true.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="columnIndexType" default="OnDemand">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NotIndexed"/>
<xs:enumeration value="OnDisk"/>
<xs:enumeration value="OnDiskAll"/>
<xs:enumeration value="OnDiskVector"/>
<xs:enumeration value="OnDemand"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maxSize" type="xs:nonNegativeInteger" default="512"/>
<xs:attribute name="mnemonics" type="xs:string"/>
</xs:complexType>
</xs:element>
Windows Vista 的語法
<!-- searchInfo for Windows Vista-->
<xs:element name="searchInfo">
<xs:complexType>
<xs:attribute name="inInvertedIndex" type="xs:boolean" default="false"/>
<xs:attribute name="isColumn" type="xs:boolean" default="false"/>
<xs:attribute name="isColumnSparse" type="xs:boolean" default="true">
<xs:annotation>
<xs:documentation>
isColumnSparse: Default is true. If the property is multi-valued, this is always true.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="columnIndexType" default="OnDemand">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NotIndexed"/>
<xs:enumeration value="OnDisk"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maxSize" type="xs:nonNegativeInteger" default="128"/>
</xs:complexType>
</xs:element>
項目資訊
Parent 項目 | 子元素 |
---|---|
propertyDescription | 無 |
屬性
屬性 | 描述 |
---|---|
inInvertedIndex | 公用。 選擇性。 指出屬性值是否應該儲存在反向索引中。 這可讓使用者對此屬性的值執行全文檢索查詢。 預設值為 "false"。 |
isColumn | 公用。 選擇性。 指出屬性是否也應該以資料行的形式儲存在Windows搜尋資料庫中,讓獨立軟體廠商 (ISV) 可以建立述詞型 (查詢,例如「Select * Where 」System.Title「='qqq'」) 。 如果架構建立者想要讓使用者 (或開發人員) 根據屬性建立述詞查詢,則必須將此設定為 「true」。 預設值為 "false"。 |
isColumnSparse | 公用。 選擇性。 預設為 "true"。 如果屬性是多重值,這個屬性一律為 「true」。 |
columnIndexType | 公用。 選擇性。 若要優化排序和分組,Windows搜尋引擎可以針對具有 isColumn=「true」 的屬性建立次要索引。 只有在 Windows Vista 中的 inInvertedIndex 為 「true」 或 Windows 7 中的 isColumn 為 「true」 時,此屬性才有用。 如果屬性通常會由使用者經常排序,則應該指定此屬性。 Windows Vista 中的預設值為 「NotIndexed」。 Windows 7 中的預設值為 「OnDemand」。 下列值有效。
|
maxSize | 公用。 選擇性。 Windows搜尋資料庫中儲存的特定屬性允許的大小上限,以位元組為單位。 預設值為:
|
助憶鍵 | Windows 7 和更新版本。 公用。 選擇性。 可用來參考搜尋查詢中屬性的助憶鍵值清單。 清單是以 '|' 字元分隔。 |