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
Type Definitions
-
FieldDefinition
-
definition for a field
Type:
- Object
- Source:
Properties:
Name Type Description weight
number weight of the item to rank search results
Example
{ weight : 2}
-
IndexDefinition
-
Definition of an index content
Type:
- Object
- Source:
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
Example
{ key: 'id', fields: { "title": { weight : 5}, "description.detail": { weight : 2}}}