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

 

屬性

屬性 Description
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」。 下列值有效。
  • NotIndexed:永不建置值索引。
  • OnDisk:根據預設,建置此屬性的值索引。
  • OnDiskAll (Windows 7 和更新版本僅) :根據預設,為此屬性建置值索引,如果它是向量屬性,也會是所有串連向量值的值索引。
  • OnDiskVector (Windows 7 和更新版本,僅) :依預設為串連向量值建置值索引。
  • OnDemand (Windows 7 和更新版本僅) :只依需求建置值索引,也就是說,只會第一次用於查詢。
maxSize 公用。 選擇性。 儲存在 Windows 搜尋資料庫中的特定屬性,大小上限,以位元組為單位。 預設值為:
  • Windows Vista:128 個位元組
  • Windows 7 和更新版本:512 個位元組
請注意,這個大小上限是以位元組為單位來測量,而不是字元。 字元數目上限取決於其編碼方式。
助憶鍵 Windows 7 和更新版本。 公用。 選擇性。 可用來參考搜尋查詢中屬性的助憶鍵值清單。 清單是以 '|' 字元分隔。