Skip to content

Commit faa006e

Browse files
Update README.md (#126)
Move `isExactSearch` and `removeStopWordFilter` parameters from search `itemsjs.search(options)` `options` section to `configuration` section
1 parent f182c18 commit faa006e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ Responsible for defining global configuration. Look for full example here - [con
195195

196196
- **`native_search_enabled`** if native full text search is enabled (true | false. It's enabled by default)
197197

198+
- **`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).
199+
200+
- **`removeStopWordFilter`** set to `true` if you want to remove the stopWordFilter. See https://github.com/itemsapi/itemsjs/issues/46.
201+
198202
### `itemsjs.search(options)`
199203

200204
#### `options`
@@ -212,10 +216,6 @@ Responsible for defining global configuration. Look for full example here - [con
212216
- **`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)
213217

214218
- **`filters_query`** boolean filtering i.e. (tags:novel OR tags:80s) AND category:Western
215-
216-
- **`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).
217-
218-
- **`removeStopWordFilter`** set to `true` if you want to remove the stopWordFilter. See https://github.com/itemsapi/itemsjs/issues/46.
219219

220220
- **`is_all_filtered_items`** set to `true` if you want to return the whole filtered dataset.
221221

0 commit comments

Comments
 (0)