Class: IndexGroup

WinJSContrib.Search. IndexGroup

new IndexGroup(definitions)

group of indexes

Parameters:
Name Type Description
definitions Object

object containing definitions

Source:
Example
var idxgroup = new WinJSContrib.Search.IndexGroup({ peoples: { "firstname": { weight: 42 }} });

Methods

addIndex(name, definition) → {WinJS.Promise}

add an index to group

Parameters:
Name Type Description
name string

index name

definition WinJSContrib.Search.IndexDefinition

index definition

Source:
Returns:
Type
WinJS.Promise

addRange(name) → {WinJS.Promise}

add items to an index

Parameters:
Name Type Description
name string

index name

Source:
Returns:
Type
WinJS.Promise

dispose()

release all indexes

Source:

load() → {WinJS.Promise}

load group indexes

Source:
Returns:
Type
WinJS.Promise

save() → {WinJS.Promise}

save group indexes

Source:
Returns:
Type
WinJS.Promise

search group's indexes

Parameters:
Name Type Description
querytext string

search query

Source: