Skip to content

Commit

Permalink
faceted search - improved algorithms (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
cigolpl authored Mar 25, 2021
1 parent 00592c6 commit 36a5c3b
Show file tree
Hide file tree
Showing 33 changed files with 23,916 additions and 6,824 deletions.
37 changes: 37 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
env:
node: true
commonjs: true
mocha: true
es2021: true
extends: 'eslint:recommended'
ignorePatterns:
- node_modules
- examples
- assets
- vendor
- lib
- dist
- temp
parserOptions:
ecmaVersion: 12
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-unused-vars:
- error
- args: after-used
caughtErrors: none
no-var:
- error
prefer-const:
- error
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ Responsible for defining global configuration. Look for full example here - [con
- **`filters`** filtering items based on specific aggregations i.e. {tags: ['drama' , 'historical']}

- **`filter`** function responsible for items filtering. The way of working is similar to js [native filter function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter). [See example](/docs/configuration.md)

- **`prefilter`** function which narrows items down in custom way i.e. with filter or slice. [See example](/docs/configuration.md)

- **`isExactSearch`** set to `true` if you want to always show exact search matches. See [lunr stemmer](https://github.com/olivernn/lunr.js/issues/328) and [lunr stopWordFilter](https://github.com/olivernn/lunr.js/issues/233).

Expand Down
Loading

0 comments on commit 36a5c3b

Please sign in to comment.