Closed jonestristand closed 6 years ago
FYI Travis CI failure above is a result of a strict mode issue with mocha, not with the code in this PR
Indeed, tests passed for me. Thanks a lot for your contribution!
@jonestristand Could you also update the README to document this new usage? Copy/pasting your first PR comment is fine. Thanks!
I've updated the README.md and will submit a new PR with those changes (PR#19). Thanks!
FYI your README badge is showing build:failing due to the above issue with travis CI... Might be worth updating the build config to pass again. I think all that is needed is to update the config to use a more recent version of node.js as it is still using node v0.10 and v0.11...
Thanks. Merged and updated the Travis's node version.
Added support for returning tokenized text terms instead of a string, e.g.: search: 'plain pyjama wear'
Also added support for quoted term literals, e.g.: search: 'plain "pyjama wear" dinner'
Finally, support for negation of text terms, e.g.: search: '-plain -"pyjama wear" dinner'
None of these changes should break existing projects. Negation of text terms is enabled by default, and tokenized return of terms is enabled by passing
tokenize: true
in optionsTests updated for new functionality, all passing.
Cheers, Tristan