mirror of https://gitee.com/bigwinds/arangodb
documentation updates
This commit is contained in:
parent
3df0940c7e
commit
4985911a65
|
@ -1,8 +1,10 @@
|
|||
devel
|
||||
-----
|
||||
|
||||
* the rocksdb storage format was changed, users of the previous alpha versions
|
||||
must delete the database directory and reimport their data
|
||||
* added `REGEX_REPLACE` AQL function
|
||||
|
||||
* 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`
|
||||
|
||||
|
|
|
@ -238,7 +238,7 @@ AQL
|
|||
statements in AQL, without the need to use the somewhat limited special-purpose geo AQL
|
||||
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
|
||||
used in the AQL query.
|
||||
|
||||
|
@ -257,11 +257,23 @@ AQL
|
|||
FILTER DISTANCE(doc.latitude, doc.longitude, 0, 0) < 2000
|
||||
RETURN doc
|
||||
|
||||
Note that this will work in the MMFiles engine only.
|
||||
|
||||
|
||||
### 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
|
||||
abort instead of continuing with warnings.
|
||||
|
||||
|
|
Loading…
Reference in New Issue