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 パブリック。 省略可能。 独立系ソフトウェア ベンダー (ISV) が述語ベースのクエリ (たとえば、"Select * Where "System.Title"='qqq'") を作成できるように、プロパティを列として Windows 検索データベースに格納する必要があるかどうかを示します。 スキーマ作成者が、エンド ユーザー (または開発者) がプロパティに基づく述語ベースのクエリを作成できるようにする場合は、これを "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 以降。 パブリック。 省略可能。 検索クエリで プロパティを参照するために使用できるニーモニック値の一覧。 リストは '|' 文字で区切られます。