1
0
Fork 0

documentation updates

This commit is contained in:
jsteemann 2017-06-01 11:14:12 +02:00
parent 3df0940c7e
commit 4985911a65
2 changed files with 19 additions and 5 deletions

View File

@ -1,8 +1,10 @@
devel devel
----- -----
* the rocksdb storage format was changed, users of the previous alpha versions * added `REGEX_REPLACE` AQL function
must delete the database directory and reimport their data
* the RocksDB storage format was changed, users of the previous alpha versions
must delete the database directory and re-import their data
* added server startup option `--query.fail-on-warning` * added server startup option `--query.fail-on-warning`

View File

@ -238,7 +238,7 @@ AQL
statements in AQL, without the need to use the somewhat limited special-purpose geo AQL statements in AQL, without the need to use the somewhat limited special-purpose geo AQL
functions `NEAR` or `WITHIN`. functions `NEAR` or `WITHIN`.
Compared to using thespecial purpose AQL functions this approach has the Compared to using the special purpose AQL functions this approach has the
advantage that it is more composable, and will also honor any `LIMIT` values advantage that it is more composable, and will also honor any `LIMIT` values
used in the AQL query. used in the AQL query.
@ -257,11 +257,23 @@ AQL
FILTER DISTANCE(doc.latitude, doc.longitude, 0, 0) < 2000 FILTER DISTANCE(doc.latitude, doc.longitude, 0, 0) < 2000
RETURN doc RETURN doc
Note that this will work in the MMFiles engine only.
### Miscellaneous improvements ### Miscellaneous improvements
* added `REGEX_REPLACE` AQL function
`REGEX_REPLACE(text, search, replacement, caseInsensitive) → string`
Replace the pattern *search* with the string *replacement* in the string
*text*, using regular expression matching.
- **text** (string): the string to search in
- **search** (string): a regular expression search pattern
- **replacement** (string): the string to replace the *search* pattern with
- returns **string** (string): the string *text* with the *search* regex
pattern replaced with the *replacement* string wherever the pattern exists
in *text*
* added new startup option `--query.fail-on-warning` to make AQL queries * added new startup option `--query.fail-on-warning` to make AQL queries
abort instead of continuing with warnings. abort instead of continuing with warnings.