Skip to content

Commit 59cf5a2

Browse files
committed
readme
1 parent aa92ac3 commit 59cf5a2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,24 @@ The generated AQL query, when run, will bring back only results that contain
223223
contain "one". In this case, documents that contain "one" will be likely to
224224
score higher than those that do not.
225225

226+
When the above phrase `one +two -"buckle my shoe"` is run against the
227+
following documents:
228+
229+
```boxcar
230+
┏━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━┓
231+
┃ Document A ┃ ┃ Document B ┃ ┃ Document C ┃
232+
┃ ---------- ┃ ┃ ┃ ┃ ┃
233+
┃ ┃ ┃ three four ┃ ┃ one ┃
234+
┃ one two ┃ ┃ ┃ ┃ ┃
235+
┃ ┃ ┃ and two ┃ ┃ ┃
236+
┃ buckle my shoe┃ ┃ ┃ ┃ ┃
237+
┗━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━┛
238+
```
239+
240+
only Document B is returned;
241+
Document A is excluded by the phrase "buckle my shoe"
242+
Document C does not contain the mandatory word "two"
243+
226244
## bugs
227245
plase see [bugs](https://github.com/HP4k1h5/AQLqueryBuilder.js/issues/new?assignees=HP4k1h5&labels=bug&template=bug_report.md&title=basic)
228246
## contributing

0 commit comments

Comments
 (0)