ContentIndexer.GetIndexer(String) | getIndexer(String) method

Applies to Windows only

Gets the per-app index with the specified name or creates a new one, if necessary.

Syntax


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

Parameters

indexName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The index name.

Return value

Type: ContentIndexer

The index.

Remarks

The app can provide an indexName identifier that it can use to partition data for its own queries. This identifier is included as part of the item scope, which means that it's faster to partition based on this scope than by filtering with a property. The approach has the cost of being unable to query easily across multiple scopes.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

ContentIndexer
GetIndexer

 

 

Show:
© 2015 Microsoft