Windows Dev Center

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

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows 10 Mobile

Namespace

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

Metadata

Windows.winmd

See also

ContentIndexer
GetIndexer

 

 

Show:
© 2015 Microsoft