ContentIndexer class

Applies to Windows only

Enables Windows Store apps to place content properties in the system index.

Syntax


var contentIndexer = Windows.Storage.Search.ContentIndexer.getIndexer(string);
var contentIndexer = Windows.Storage.Search.ContentIndexer.getIndexer();

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The ContentIndexer class has these types of members:

Methods

The ContentIndexer class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
AddAsync
CreateQuery(String, IIterable(String))
CreateQuery(String, IIterable(String), IIterable(SortEntry))
CreateQuery(String, IIterable(String), IIterable(SortEntry), String)
DeleteAllAsync
DeleteAsync
DeleteMultipleAsync
GetIndexer()
GetIndexer(String)
RetrievePropertiesAsync
UpdateAsync

 

Properties

The ContentIndexer class has these properties.

PropertyAccess typeDescription

Revision

Read-only

 

Remarks

The index is a cache of searchable properties for data that's backed by storage elsewhere. Don't use the index as a primary data store.

Define properties for the index with string-object key-value pairs, where the keys are standard Windows property names, like System.Author, and the values are PropertyValue instances. The property must be registered on the system.

You query over content by using Advanced Query Syntax (AQS).

Also, you can provide full-text search content by using a stream and content type. This corresponds to running the IFilter implementation for the type and indexing the content.

For more information, see the Windows Property System.

Define properties for the index with string-object key-value pairs, where the keys are standard Windows property names, like System.Author, and the values are PropertyValue instances. The property must be registered on the system. The keys should be described as standard Windows property canonical names.

Content is separated per app package, per user, and a package can't query another package's data.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Storage.Search
Windows::Storage::Search [C++]

Metadata

Windows.winmd

See also

ContentIndexerQuery
IndexableContent
QueryOptions
StorageFileQueryResult
StorageFolderQueryResult
StorageItemQueryResult
Windows Property System
Object

 

 

Show:
© 2014 Microsoft