Skip to content

Commit

Permalink
add docs for stop words (fixes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jul 19, 2017
1 parent 4b44637 commit 8507e5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -85,6 +85,12 @@ Wade.pipeline.push(function(str) {

All functions will be executed in the order of the pipeline (0-n) and they will be used on each document in the data.

The stop words can be configured to include any words you like, and you can access the array of stop words by using:

```js
Wade.config.stopWords = [/* array of stop words */];
```

### Algorithm

The algorithm behind the search is fairly simple. First, a trie data structure is generated off of the data. When performing a search, the following happens:
Expand Down

0 comments on commit 8507e5f

Please sign in to comment.