commit 0ad594eeb145fb8fb9175832cd8498969c15f42b parent 92807791ae7113a0a5675dc046945e9251a11b46 Author: finwo <finwo@pm.me> Date: Tue, 11 Jun 2019 14:15:05 +0200 Added multi-query to example Diffstat:
| M | README.md | | | 2 | ++ |
| M | example.js | | | 3 | +++ |
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -65,6 +65,8 @@ console.log(data.filter(lucene('jedi'))); // Prints an array with only the outcast console.log(data.filter(lucene('name: "moon moon"'))); +// Prints Obi-Wan +console.log(data.filter(lucene('species: human AND master'))); ``` diff --git a/example.js b/example.js @@ -20,3 +20,6 @@ console.log(data.filter(lucene('jedi'))); // Prints an array with only the outcast console.log(data.filter(lucene('name: "moon moon"'))); + +// Prints Obi-Wan +console.log(data.filter(lucene('species: human AND master')));