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 和更新版本。 公共。 自選。 可用來在搜尋查詢中參考 屬性的助記鍵值清單。 清單是以 『|』 字元分隔。 |