Namespace: Search

WinJSContrib. Search

Small text search features based on objet indexing and text stemming. It's inspired by tools like Lucene. For now indexes are stored with WinRT files, but it will soon be extended to support an extensible storage mecanism

Source:

Classes

Index
IndexGroup

Type Definitions

FieldDefinition

definition for a field

Type:
  • Object
Properties:
Name Type Description
weight number

weight of the item to rank search results

Source:
Example
{ weight : 2}

IndexDefinition

Definition of an index content

Type:
  • Object
Properties:
Name Type Description
key string

name of the property considered as a key for the items

fields Object

object containing item's property path as name, and WinJSContrib.Search.FieldDefinition as value

Source:
Example
{ key: 'id', fields: { "title": { weight : 5}, "description.detail": { weight : 2}}}