diff --git a/.esdoc.json b/.esdoc.json deleted file mode 100644 index 111326b7..00000000 --- a/.esdoc.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "source": "./src", - "destination": "./docs", - "includes": ["\\.js$"], - "excludes": ["benchmark", "testSetup", "\\.test\\.js$"], - "outputAST": false, - "plugins": [ - { - "name": "esdoc-standard-plugin", - "option": { - "accessor": { "access": ["public"], "autoPrivate": true }, - "coverage": { "enable": false }, - "brand": { - "title": "MiniSearch", - "logo": "MiniSearch.png", - "description": "Tiny but powerful full-text search", - "site": "https://lucaong.github.io/minisearch/", - "repository": "https://github.com/lucaong/minisearch", - "author": "https://twitter.com/lucaongaro" - }, - "manual": { - "files": ["README.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "DESIGN_DOCUMENT.md", "CHANGELOG.md"] - } - } - }, - { - "name": "esdoc-ecmascript-proposal-plugin", - "option": { "all": true } - } - ] -} diff --git a/.gitignore b/.gitignore index 87386139..5c3cf647 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /examples/dist /examples/node_modules /coverage +yarn-error.log diff --git a/README.md b/README.md index e78986fa..f7d789b2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [![MiniSearch](https://lucaong.github.io/minisearch/MiniSearch.svg)](https://lucaong.github.io/minisearch/) MiniSearch +# MiniSearch [![Build Status](https://travis-ci.org/lucaong/minisearch.svg?branch=master)](https://travis-ci.org/lucaong/minisearch) [![Coverage Status](https://coveralls.io/repos/github/lucaong/minisearch/badge.svg?branch=master)](https://coveralls.io/github/lucaong/minisearch?branch=master) @@ -299,7 +299,7 @@ The default term processor can be obtained by calling ### API Documentation -Refer to the [API documentation](https://lucaong.github.io/minisearch/identifiers.html) +Refer to the [API documentation](https://lucaong.github.io/minisearch/) for details about configuration options and methods. @@ -315,7 +315,7 @@ be used to provide those functions. ## Contributing Contributions to `MiniSearch` are welcome! Please read the [contributions -guidelines](https://lucaong.github.io/minisearch/manual/CONTRIBUTING.html). +guidelines](https://github.com/lucaong/minisearch/CONTRIBUTING.html). Reading the [design -document](https://lucaong.github.io/minisearch/manual/DESIGN_DOCUMENT.html) is +document](https://github.com/lucaong/minisearch/DESIGN_DOCUMENT.html) is also useful to understand the project goals and the technical implementation. diff --git a/docs/MiniSearch.html b/docs/MiniSearch.html new file mode 100644 index 00000000..61ecb28d --- /dev/null +++ b/docs/MiniSearch.html @@ -0,0 +1,3699 @@ + + + + + + MiniSearch - Documentation + + + + + + + + + + + + + + + + + + + +
+ +

MiniSearch

+ + + + + + + +
+ +
+ +

+ MiniSearch +

+ +

MiniSearch is the main entrypoint class, and represents a full-text search +engine.

+ + +
+ +
+ +
+ + + + +

Constructor

+ + +

new MiniSearch(options)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Examples
+ +
// Create a search engine that indexes the 'title' and 'text' fields of your
+// documents:
+const miniSearch = MiniSearch.new({ fields: ['title', 'text'] })
+ +
// Your documents are assumed to include a unique 'id' field, but if you want
+// to use a different field for document identification, you can set the
+// 'idField' option:
+const miniSearch = MiniSearch.new({ idField: 'key', fields: ['title', 'text'] })
+ +
// The full set of options (here with their default value) is:
+const miniSearch = MiniSearch.new({
+  // idField: field that uniquely identifies a document
+  idField: 'id',
+
+  // extractField: function used to get the value of a field in a document.
+  // By default, it assumes the document is a flat object with field names as
+  // property keys and field values as string property values, but custom logic
+  // can be implemented by setting this option to a custom extractor function.
+  extractField: (document, fieldName) => document[fieldName],
+
+  // tokenize: function used to split fields into individual terms. By
+  // default, it is also used to tokenize search queries, unless a specific
+  // `tokenize` search option is supplied. When tokenizing an indexed field,
+  // the field name is passed as the second argument.
+  tokenize: (string, _fieldName) => string.split(SPACE_OR_PUNCTUATION),
+
+  // processTerm: function used to process each tokenized term before
+  // indexing. It can be used for stemming and normalization. Return a falsy
+  // value in order to discard a term. By default, it is also used to process
+  // search queries, unless a specific `processTerm` option is supplied as a
+  // search option. When processing a term from a indexed field, the field
+  // name is passed as the second argument.
+  processTerm: (term, _fieldName) => term.toLowerCase(),
+
+  // searchOptions: default search options, see the `search` method for
+  // details
+  searchOptions: undefined,
+
+  // fields: document fields to be indexed. Mandatory, but not set by default
+  fields: undefined
+
+  // storeFields: document fields to be stored and returned as part of the
+  // search results.
+  storeFields: []
+})
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + + +Object + + + +

Configuration options

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
fields + + +Array.<string> + + + + + + + + + + + +

Fields to be indexed. Required.

idField + + +string + + + + + + <optional>
+ + + + + +
+ + 'id' + +

ID field, uniquely identifying a document

storeFields + + +Array.<string> + + + + + + <optional>
+ + + + + +
+ +

Fields to store, so that search results would include them. By default none, so resuts would only contain the id field.

extractField + + +MiniSearch~extractField + + + + + + <optional>
+ + + + + +
+ +

Function used to get the value of a field in a document

tokenize + + +MiniSearch~tokenize + + + + + + <optional>
+ + + + + +
+ +

Function used to split a field into individual terms

processTerm + + +MiniSearch~processTerm + + + + + + <optional>
+ + + + + +
+ +

Function used to process a term before indexing it or searching

searchOptions + + +Object + + + + + + <optional>
+ + + + + +
+ +

Default search options (see the search method for details)

+ +
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +

Members

+ + + +

documentCount :number

+ + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Number of documents in the index

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + + + + + + +

Methods

+ + + + + + +

(static) getDefault(optionName) → {*}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Get the default value of an option. It will throw an error if no option with +the given name exists.

+
+ + + + + + + + + +
Examples
+ +
// Get default tokenizer
+MiniSearch.getDefault('tokenize')
+ +
// Get default term processor
+MiniSearch.getDefault('processTerm')
+ +
// Unknown options will throw an error
+MiniSearch.getDefault('notExisting')
+// => throws 'MiniSearch: unknown option "notExisting"'
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
optionName + + +string + + + +

name of the option

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

the default value of the given option

+
+ + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

(static) loadJSON(json, options) → {MiniSearch}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Deserializes a JSON index (serialized with miniSearch.toJSON()) and +instantiates a MiniSearch instance. It should be given the same options +originally used when serializing the index.

+

Warning: JSON (de)serialization of the index is currently tightly +coupled to the index implementation. For this reason, the current +implementation is to be considered a beta feature, subject to breaking +changes changes in future releases. If a breaking change is introduced, +though, it will be properly reported in the changelog.

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
json + + +string + + + +

JSON-serialized index

options + + +Object + + + +

configuration options, same as the constructor

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

an instance of MiniSearch

+
+ + + +
+
+ Type +
+
+ +MiniSearch + + +
+
+ + + + + + + + + + +

add(document)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Adds a document to the index

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
document + + +Object + + + +

the document to be indexed

+ + + + + + + + + + + + + + + + + + + + + + + + +

addAll(documents)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Adds all the given documents to the index

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
documents + + +Array.<Object> + + + +

an array of documents to be indexed

+ + + + + + + + + + + + + + + + + + + + + + + + +

addAllAsync(documents, optionsopt) → {Promise}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Adds all the given documents to the index asynchronously.

+

Returns a promise that resolves to undefined when the indexing is done. This +method is useful when index many documents, to avoid blocking the main +thread. The indexing is performed asynchronously and in chunks.

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
documents + + +Array.<Object> + + + + + + + + + +

an array of documents to be indexed

options + + +Object + + + + + + <optional>
+ + + + + +

Configuration options

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
chunkSize + + +number + + + + + + <optional>
+ + + + + +

Size of the document chunks indexed, 10 by default

+ +
+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

A promise resolving to null when the indexing is done

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + +

autoSuggest(queryString, optionsopt) → {Array.<{suggestion: string, score: number}>}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Provide suggestions for the given search query

+

The result is a list of suggested modified search queries, derived from the +given search query, each with a relevance score, sorted by descending score.

+
+ + + + + + + + + +
Examples
+ +
// Get suggestions for 'neuro':
+miniSearch.autoSuggest('neuro')
+// => [ { suggestion: 'neuromancer', terms: [ 'neuromancer' ], score: 0.46240 } ]
+ +
// Get suggestions for 'zen ar':
+miniSearch.autoSuggest('zen ar')
+// => [
+//  { suggestion: 'zen archery art', terms: [ 'zen', 'archery', 'art' ], score: 1.73332 },
+//  { suggestion: 'zen art', terms: [ 'zen', 'art' ], score: 1.21313 }
+// ]
+ +
// Correct spelling mistakes using fuzzy search:
+miniSearch.autoSuggest('neromancer', { fuzzy: 0.2 })
+// => [ { suggestion: 'neuromancer', terms: [ 'neuromancer' ], score: 1.03998 } ]
+ +
// Get suggestions for 'zen ar', but only within the 'fiction' category
+// (assuming that 'category' is a stored field):
+miniSearch.autoSuggest('zen ar', {
+  filter: (result) => result.category === 'fiction'
+})
+// => [
+//  { suggestion: 'zen archery art', terms: [ 'zen', 'archery', 'art' ], score: 1.73332 },
+//  { suggestion: 'zen art', terms: [ 'zen', 'art' ], score: 1.21313 }
+// ]
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
queryString + + +string + + + + + + + + + +

Query string to be expanded into suggestions

options + + +Object + + + + + + <optional>
+ + + + + +

Search options. The supported options and default values are the same as for the search method, except that by default prefix search is performed on the last term in the query.

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

A sorted array of suggestions sorted by relevance score.

+
+ + + +
+
+ Type +
+
+ +Array.<{suggestion: string, score: number}> + + +
+
+ + + + + + + + + + +

remove(document)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Removes the given document from the index.

+

The document to delete must NOT have changed between indexing and deletion, +otherwise the index will be corrupted. Therefore, when reindexing a document +after a change, the correct order of operations is:

+
    +
  1. remove old version
  2. +
  3. apply changes
  4. +
  5. index new version
  6. +
+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
document + + +Object + + + +

the document to be indexed

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Search for documents matching the given search query.

+

The result is a list of scored document IDs matching the query, sorted by +descending score, and each including data about which terms were matched and +in which fields.

+
+ + + + + + + + + +
Examples
+ +
// Search for "zen art motorcycle" with default options: terms have to match
+// exactly, and individual terms are joined with OR
+miniSearch.search('zen art motorcycle')
+// => [ { id: 2, score: 2.77258, match: { ... } }, { id: 4, score: 1.38629, match: { ... } } ]
+ +
// Search only in the 'title' field
+miniSearch.search('zen', { fields: ['title'] })
+ +
// Boost a field
+miniSearch.search('zen', { boost: { title: 2 } })
+ +
// Search for "moto" with prefix search (it will match documents
+// containing terms that start with "moto" or "neuro")
+miniSearch.search('moto neuro', { prefix: true })
+ +
// Search for "ismael" with fuzzy search (it will match documents containing
+// terms similar to "ismael", with a maximum edit distance of 0.2 term.length
+// (rounded to nearest integer)
+miniSearch.search('ismael', { fuzzy: 0.2 })
+ +
// Mix of exact match, prefix search, and fuzzy search
+miniSearch.search('ismael mob', {
+ prefix: true,
+ fuzzy: 0.2
+})
+ +
// Perform fuzzy and prefix search depending on the search term. Here
+// performing prefix and fuzzy search only on terms longer than 3 characters
+miniSearch.search('ismael mob', {
+ prefix: term => term.length > 3
+ fuzzy: term => term.length > 3 ? 0.2 : null
+})
+ +
// Combine search terms with AND (to match only documents that contain both
+// "motorcycle" and "art")
+miniSearch.search('motorcycle art', { combineWith: 'AND' })
+ +
// Filter only results in the 'fiction' category (assuming that 'category'
+// is a stored field)
+miniSearch.search('motorcycle art', {
+  filter: (result) => result.category === 'fiction'
+})
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
queryString + + +string + + + + + + + + + +

Query string to search for

options + + +Object + + + + + + <optional>
+ + + + + +

Search options. Each option, if not given, defaults to the corresponding value of searchOptions given to the constructor, or to the library default.

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
fields + + +Array.<string> + + + + + + <optional>
+ + + + + +
+ +

Fields to search in. If omitted, all fields are searched

boost + + +Object.<string, number> + + + + + + <optional>
+ + + + + +
+ +

Key-value object of boosting values for fields

prefix + + +boolean +| + +MiniSearch~prefixFn + + + + + + <optional>
+ + + + + +
+ + false + +

Whether to perform prefix search. Value can be a boolean, or a function computing the boolean from each tokenized and processed query term. If a function is given, it is called with the following arguments: term: string - the query term; i: number - the term index in the query terms; terms: Array<string> - the array of query terms.

fuzzy + + +number +| + +false +| + +MiniSearch~fuzzyFn + + + + + + <optional>
+ + + + + +
+ + false + +

If set to a number greater than or equal 1, it performs fuzzy search within a maximum edit distance equal to that value. If set to a number less than 1, it performs fuzzy search with a maximum edit distance equal to the term length times the value, rouded at the nearest integer. If set to a function, it calls the function for each tokenized and processed query term and expects a numeric value indicating the maximum edit distance, or a falsy falue if fuzzy search should not be performed. If a function is given, it is called with the following arguments: term: string - the query term; i: number - the term index in the query terms; terms: Array<string> - the array of query terms.

combineWith + + +string + + + + + + <optional>
+ + + + + +
+ + 'OR' + +

How to combine term queries (it can be 'OR' or 'AND')

tokenize + + +MiniSearch~tokenize + + + + + + <optional>
+ + + + + +
+ +

Function used to tokenize the search query. It defaults to the same tokenizer used for indexing.

processTerm + + +MiniSearch~processTerm + + + + + + <optional>
+ + + + + +
+ +

Function used to process each search term. Return a falsy value to discard a term. Defaults to the same function used to process terms upon indexing.

filter + + +MiniSearch~filter + + + + + + <optional>
+ + + + + +
+ +

Function used to filter search results, for example on the basis of stored fields

+ +
+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

A sorted array of scored document IDs matching the search

+
+ + + +
+
+ Type +
+
+ +Array.<{id: any, score: number, match: Object}> + + +
+
+ + + + + + + + + + +

toJSON() → {Object}

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+

Allows serialization of the index to JSON, to possibly store it and later +deserialize it with MiniSearch.loadJSON

+

Warning: JSON (de)serialization of the index is currently tightly +coupled to the index implementation. For this reason, the current +implementation is to be considered a beta feature, subject to breaking +changes changes in future releases. If a breaking change is introduced, +though, it will be reported in the changelog.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+

the serializeable representation of the search index

+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + +

Type Definitions

+ + + + + + +

extractField(document, fieldName)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
document + + +Object + + + +

A document object

fieldName + + +string + + + +

Name of the field to extract

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

string - Value of the field

+
+ + + + + + + + + + + + +

filter(result)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
result + + +Object + + + +

A search result

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

boolean - true to keep the result, false to filter it out

+
+ + + + + + + + + + + + +

fuzzyFn(term, i, terms)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
term + + +string + + + +

Search term

i + + +number + + + +

Index of the search term in the tokenized search query

terms + + +Array.<string> + + + +

Array of all query terms

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

number|false - Maximum edit distance, or false to not perform fuzzy search

+
+ + + + + + + + + + + + +

prefixFn(term, i, terms)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
term + + +string + + + +

Search term

i + + +number + + + +

Index of the term in the query terms array

terms + + +Array.<string> + + + +

Array of all query terms

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

boolean - true to perform prefix search, false to not perform it

+
+ + + + + + + + + + + + +

processTerm(text, fieldNamenullable)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
text + + +string + + + + + + + + + +

The text to tokenize

fieldName + + +string + + + + + + + + <nullable>
+ + + +

The name of the field to tokenize

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

string|null|undefined|false - Processed term, or a falsy value to discard the term

+
+ + + + + + + + + + + + +

tokenize(text, fieldNamenullable)

+ + + + + + +
+ + +
Source:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
text + + +string + + + + + + + + + +

Text to tokenize

fieldName + + +string + + + + + + + + <nullable>
+ + + +

Name of the field to tokenize

+ + + + + + + + + + + + + + + + +
Returns:
+ + +
+

string[] - Tokenized terms

+
+ + + + + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/file/src/MiniSearch.js.html b/docs/MiniSearch.js.html similarity index 59% rename from docs/file/src/MiniSearch.js.html rename to docs/MiniSearch.js.html index 06961cd9..cb8eff2a 100644 --- a/docs/file/src/MiniSearch.js.html +++ b/docs/MiniSearch.js.html @@ -1,45 +1,53 @@ - + - - - src/MiniSearch.js | MiniSearch - - - - - - - -
- - Manual - Reference - Source - - -
- -