Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit a143a71

Browse files
authored
Consistency 2023-02-16 (#1278)
* Formatting, style, typos * Fix typos, apply to 3.10 * Fix Liquid warnings * Remove incorrectly added 3.11-only DocuBlock * Fix typos that depend on arangodb/arangodb#17471 * can not -> cannot * Review feedback * Update examples for 3.11 in consistency-2023-02-16 at 2023-03-06T16:44:32+00:00
1 parent 19cb0ab commit a143a71

File tree

699 files changed

+10598
-9470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

699 files changed

+10598
-9470
lines changed

3.10/administration-configuration.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -173,26 +173,26 @@ Specific to arangod, move to programs detail page?
173173
Does the resolution order for config files apply to all binaries?
174174
Linux only? Also macOS? Windows not addressed so far.
175175

176-
If this command is not passed to the server, then by default, the server will
177-
attempt to first locate a file named *~/.arango/arangod.conf* in the user's home
176+
If this command is not passed to the server, then by default, the server
177+
attempts to first locate a file named `~/.arango/arangod.conf` in the user's home
178178
directory.
179179

180-
If no such file is found, the server will proceed to look for a file
181-
*arangod.conf* in the system configuration directory. The system configuration
180+
If no such file is found, the server proceeds to look for a file
181+
`arangod.conf` in the system configuration directory. The system configuration
182182
directory is platform-specific, and may be changed when compiling ArangoDB
183-
yourself. It may default to */etc/arangodb* or */usr/local/etc/arangodb*. This
183+
yourself. It may default to `/etc/arangodb` or `/usr/local/etc/arangodb`. This
184184
file is installed when using a package manager like rpm or dpkg. If you modify
185185
this file and later upgrade to a new version of ArangoDB, then the package
186186
manager normally warns you about the conflict. In order to avoid these warning
187187
for small adjustments, you can put local overrides into a file
188-
*arangod.conf.local*.
188+
`arangod.conf.local`.
189189
{% endcomment %}
190190

191191
## Suffixes for Numeric Options
192192

193-
It is possible to add suffixes to numeric options that will cause ArangoDB to
194-
multiply the value by a certain factor. This can be used to conveniently specify
195-
values in megabytes or gigabytes for example.
193+
You can add suffixes to numeric options to let ArangoDB multiply the value by a
194+
certain factor. This allows you to conveniently specify values, for example,
195+
in megabytes or gigabytes.
196196

197197
| Suffix | Factor | Example |
198198
|----------------------|----------|---------|
@@ -204,7 +204,7 @@ values in megabytes or gigabytes for example.
204204
| `g`, `G`, `gb`, `GB` | 1000 ^ 3 | 3GB |
205205
| `%` | 0.01 | 5% |
206206

207-
Suffix could be used like this in a configuration file:
207+
You can also use suffixes in configuration files like this:
208208

209209
```conf
210210
[rocksdb]
@@ -284,29 +284,29 @@ level = startup=info
284284
There are built-in defaults, with which all configuration variables are first
285285
initialized. They can be overridden by configuration files and command line
286286
options (in this order). Only a fraction of all available options are set in
287-
the configuration files that ArangoDB ships with. Many options will therefore
287+
the configuration files that ArangoDB ships with. Many options therefore
288288
fall back to the built-in defaults unless they are overridden by the user.
289289

290290
It is common to use modified configuration files together with startup
291291
options on a command line to override specific settings. Command line options
292292
take precedence over values set in a configuration file.
293293

294294
If the same option is set multiple times, but only supports a single value,
295-
then the last occurrence of the option will become the final value.
296-
For example, if you edit `arangosh.conf` to set:
295+
then the last occurrence of the option becomes the final value.
296+
For example, if you edit `arangosh.conf` as follows:
297297

298-
```
298+
```conf
299299
server.database = myDB1
300300
server.database = myDB2
301301
```
302302

303-
… and start ArangoShell like:
303+
Then start ArangoShell like this:
304304

305305
```
306306
arangosh --server.database myDB3 --server.database myDB4
307307
```
308308

309-
… then the database it will connect to is `myDB4`, because this startup option
309+
The database it connects to is `myDB4`, because this startup option
310310
takes a single value only (i.e. it is not a vector), the built-in default
311311
is `_system` but the configuration file overrules the setting. It gets set to
312312
`myDB1` temporarily before it is replaced by `myDB2`, which in turn gets
@@ -315,7 +315,7 @@ final value `myDB4`.
315315

316316
## Change configuration at runtime
317317

318-
In general, supplied startup options can not be changed nor can configuration
318+
In general, supplied startup options cannot be changed nor can configuration
319319
files be reloaded once an executable is started, other than by restarting the
320320
executable with different options. However, some of the startup options
321321
define default values which can be overridden on a per-query basis for

3.10/administration-log-levels.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The meaning of each log level is described below.
3636
## FATAL
3737

3838
_Fatal_ errors are the most severe errors and only occur if a service or application
39-
can not recover safely from an abnormal state, which forces it to shut down.
39+
cannot recover safely from an abnormal state, which forces it to shut down.
4040

4141
Typically, a fatal error only occurs once in the process lifetime,
4242
so if the log file is tied to the process, this is typically

3.10/administration-managing-users.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Database `shop2`, collection `reviews` does not match a defined access
282282
level. However, database `shop2` matches and the wildcard in this
283283
database for collection level is *Read-Only*.
284284

285-
Database `somehing`, collection `else` does not match a defined access
285+
Database `something`, collection `else` does not match a defined access
286286
level. The database `something` also does have a direct matches.
287287
Therefore the wildcard is selected. The level is *Read/Write*.
288288

3.10/administration-reduce-memory-footprint.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ has to work with collections at the cost of main memory.
151151
In ArangoDB version 3.4 we introduced
152152
[streaming cursors](release-notes-new-features34.html#streaming-aql-cursors) with
153153
somewhat inverted properties: less peak memory usage, longer access to the
154-
collections. Streaming is possible on document level, which means that it can not
154+
collections. Streaming is possible on document level, which means that it cannot
155155
be applied to all query parts. For example, a *MERGE()* of all results of a
156-
subquery can not be streamed (the result of the operation has to be built up fully).
156+
subquery cannot be streamed (the result of the operation has to be built up fully).
157157
Nonetheless, the surrounding query may be eligible for streaming.
158158

159159
Aside from streaming cursors, ArangoDB offers the possibility to specify a
@@ -218,7 +218,7 @@ JavaScript:
218218
This will limit the number of V8 isolates to two. All JavaScript related
219219
requests will be queued up until one of the isolates becomes available for the
220220
new task. It also restricts the heap size to 512 MByte, so that both V8 contexts
221-
combined can not use more than 1 GByte of memory in the worst case.
221+
combined cannot use more than 1 GByte of memory in the worst case.
222222

223223
### V8 for the Desperate
224224

@@ -279,7 +279,7 @@ Also see the [_arangod_ startup options](programs-arangod-options.html#--servero
279279
CPU usage
280280
---------
281281

282-
We can not really reduce CPU usage, but the number of threads running in parallel.
282+
We cannot really reduce CPU usage, but the number of threads running in parallel.
283283
Again, you should not do this unless there are very good reasons, like an
284284
embedded system. Note that this will limit the performance for concurrent
285285
requests, which may be okay for a local development system with you as only

3.10/analyzers.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ array level and let the configured Analyzer process the individual elements by
8080
using `[*]` as a suffix for a field in the index definition. Primitive values
8181
other than strings are indexed as-is.
8282

83-
Analyzers can not process objects as a whole. However, you can work with
83+
Analyzers cannot process objects as a whole. However, you can work with
8484
individual object attributes. You can use inverted indexes and Views to index
8585
specific object attributes or sub-attributes, or index all sub-attributes with
8686
the `includeAllFields` option enabled. Each non-object value is handled as
8787
described above. Sub-objects in arrays can be indexed, too (with limitations).
88-
However, only primitive values are added to the index. Arrays and objects can
89-
not be searched for as a whole.
88+
However, only primitive values are added to the index. Arrays and objects
89+
cannot be searched for as a whole.
9090

9191
Also see:
9292
- [`SEARCH` operation](aql/operations-search.html) on how to query indexed
@@ -117,7 +117,7 @@ The names get prefixed with the database name and two colons, e.g.
117117
Custom Analyzers stored in the `_system` database can be referenced in queries
118118
against other databases by specifying the prefixed name, e.g.
119119
`_system::customGlobalAnalyzer`. Analyzers stored in databases other than
120-
`_system` can not be accessed from within another database however.
120+
`_system` cannot be accessed from within another database however.
121121

122122
Analyzer Types
123123
--------------
@@ -537,7 +537,7 @@ attributes:
537537
attribute is provided then no stop-words are loaded from files, unless an
538538
explicit `stopwordsPat` is also provided.
539539

540-
Note that if the `stopwordsPath` can not be accessed, is missing language
540+
Note that if the `stopwordsPath` cannot be accessed, is missing language
541541
sub-directories or has no files for a language required by an Analyzer,
542542
then the creation of a new Analyzer is refused. If such an issue is
543543
discovered for an existing Analyzer during startup then the server will
@@ -1077,7 +1077,7 @@ attributes:
10771077
- `analyzer` (object, _required_): an Analyzer definition-like objects with
10781078
`type` and `properties` attributes
10791079
- `numHashes` (number, _required_): the size of the MinHash signature. Must be
1080-
greater or equal to `1`. The signature size defines the probalistic error
1080+
greater or equal to `1`. The signature size defines the probabilistic error
10811081
(`err = rsqrt(numHashes)`). For an error amount that does not exceed 5%
10821082
(`0.05`), use a size of `1 / (0.05 * 0.05) = 400`.
10831083
@@ -1426,7 +1426,7 @@ Built-in Analyzers
14261426
------------------
14271427

14281428
There is a set of built-in Analyzers which are available by default for
1429-
convenience and backward compatibility. They can not be removed.
1429+
convenience and backward compatibility. They cannot be removed.
14301430

14311431
The `identity` Analyzer has no properties and the `frequency` and `norm`
14321432
features. The Analyzers of type `text` all tokenize strings with stemming

3.10/appendix-deprecated.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ replace the old features with:
162162
special HTTP headers `x-http-method`, `x-method-override` or
163163
`x-http-method-override`. This was originally intended for very restricted
164164
callers, which only supported HTTP GET and HTTP POST, but seems very
165-
unnecessary nowadways.
165+
unnecessary nowadays.
166166
- `--http.hide-product-header`: whether or not to hide the `Server: ArangoDB`
167167
header in all responses served by arangod.
168168
- `--network.protocol`: network protocol to use for cluster-internal

3.10/appendix-glossary.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,12 @@ The fulltext index type is deprecated from version 3.10 onwards.
182182
A fulltext index can be used to find words, or prefixes of words inside documents. A fulltext index can be defined on one attribute only, and will include all words contained in documents that have a textual value in the index attribute. The index will also include words from the index attribute if the index attribute is an array of strings, or an object with string value members.
183183

184184
For example, given a fulltext index on the `translations` attribute and the following documents, then searching for `лиса` using the fulltext index would return only the first document. Searching for the index for the exact string `Fox` would return the first two documents, and searching for `prefix:Fox` would return all three documents:
185-
186-
{ translations: { en: "fox", de: "Fuchs", fr: "renard", ru: "лиса" } }
187-
{ translations: "Fox is the English translation of the German word Fuchs" }
188-
{ translations: [ "ArangoDB", "document", "database", "Foxx" ] }
185+
186+
```json
187+
{ "translations": { "en": "fox", "de": "Fuchs", "fr": "renard", "ru": "лиса" } }
188+
{ "translations": "Fox is the English translation of the German word Fuchs" }
189+
{ "translations": [ "ArangoDB", "document", "database", "Foxx" ] }
190+
```
189191

190192
If the index attribute is neither a string, an object or an array, its contents will not be indexed. When indexing the contents of an array attribute, an array member will only be included in the index if it is a string. When indexing the contents of an object attribute, an object member value will only be included in the index if it is a string. Other data types are ignored and not indexed.
191193

3.10/appendix-java-script-modules-actions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ If *false*, then only use the action for exact matches. The default is
4444
`options.callback(request, response)`
4545

4646
The request argument contains a description of the request. A request
47-
parameter *foo* is accessible as *request.parametrs.foo*. A request
47+
parameter *foo* is accessible as *request.parameters.foo*. A request
4848
header *bar* is accessible as *request.headers.bar*. Assume that
4949
the action is defined for the url */foo/bar* and the request url is
5050
*/foo/bar/hugo/egon*. Then the suffix parts *[ "hugo", "egon" ]*
51-
are availible in *request.suffix*.
51+
are available in *request.suffix*.
5252

5353
The callback must define fill the *response*.
5454

3.10/appendix-java-script-modules-arango-db.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This module should not be confused with the
1313
[`arangojs` JavaScript driver](https://github.com/arangodb/arangojs){:target="_blank"}
1414
which can be used to access ArangoDB from outside the database. Although the
1515
APIs share similarities and the functionality overlaps, the two are not
16-
compatible with each other and can not be used interchangeably.
16+
compatible with each other and cannot be used interchangeably.
1717
{% endhint %}
1818

1919
The `db` object

3.10/appendix-java-script-modules-crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Returns the generated number.
6060

6161
`crypto.genRandomAlphaNumbers(length): string`
6262

63-
Generates a string of random alpabetical characters and digits.
63+
Generates a string of random alphabetical characters and digits.
6464

6565
**Arguments**
6666

@@ -172,7 +172,7 @@ Returns the JSON Web Token.
172172
* **noVerify**: `boolean` (Default: `false`)
173173

174174
Whether verification should be skipped. If this is set to `true` the signature of the token will not be verified.
175-
Otherwise the function will raise an error if the signature can not be verified using the given key.
175+
Otherwise the function will raise an error if the signature cannot be verified using the given key.
176176

177177
Returns the decoded JSON message or `null` if no token is provided.
178178

3.10/appendix-references.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
description: This section contains the documentation for some of the API's which are common on thearango shell, arangod server and for Foxx Apps
3+
description: This section contains the documentation for some of the API's which are common on the arango shell, arangod server and for Foxx Apps
44
---
55
References
66
==========

3.10/aql/advanced.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
description: This section covers additional, powerful AQL features, which you may wanna lookinto once you made yourself familiar with the basics of the query language
3+
description: This section covers additional, powerful AQL features, which you may wanna look into once you made yourself familiar with the basics of the query language
44
---
55
Advanced features
66
=================

3.10/aql/examples-remove-vertex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
description: Deleting vertices with associated edges is currently not handled via AQL while the graph management interfaceand theREST API for the graph moduleoffer a vertex deletion functionality
3+
description: Deleting vertices with associated edges is currently not handled via AQL while the graph management interface and the REST API for the graph module offer a vertex deletion functionality
44
---
55
Remove Vertex
66
=============

3.10/aql/execution-and-performance-optimizer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ The following optimizer rules may appear in the `rules` attribute of
687687
for queries that only involve collection(s) with a single shard (and identical
688688
sharding in case of multiple collections, e.g. via `distributeShardsLike`).
689689
Queries involving V8 / JavaScript (e.g. user-defined AQL functions) or
690-
SmartGraphs can not be optimized.
690+
SmartGraphs cannot be optimized.
691691

692692
Offloads the entire query to the DB-Server (except the client communication
693693
via a Coordinator). This saves all the back and forth that normally exists

3.10/aql/execution-and-performance-query-profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ db.acollection.ensureIndex({type:"persistent", fields:["value"]});
9797
{% include arangoshexample.html id=examplevar script=script result=result %}
9898

9999
This results in replacing the collection scan and filter block with an
100-
`IndexNode`. The execution pipeleine of the AQL query has become much shorter.
100+
`IndexNode`. The execution pipeline of the AQL query has become much shorter.
101101
Also the number of rows processed by each pipeline block is only 10, because
102102
we no longer need to look at all documents.
103103

3.10/aql/functions-arangosearch.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ FOR doc IN viewName
139139
RETURN doc
140140
```
141141

142-
Despite the wrapping `ANALYZER()` function, the Analyzer name can not be
142+
Despite the wrapping `ANALYZER()` function, the Analyzer name cannot be
143143
omitted in calls to the `TOKENS()` function. Both occurrences of `text_en`
144144
are required, to set the Analyzer for the expression `doc.text IN ...` and
145145
for the `TOKENS()` function itself. This is because the `TOKENS()` function
@@ -469,11 +469,11 @@ calculation:
469469

470470
```aql
471471
LET target = "the quick brown fox jumps over the lazy dog"
472-
LET targetSingature = TOKENS(target, "myMinHash")
472+
LET targetSignature = TOKENS(target, "myMinHash")
473473
474474
FOR doc IN viewName
475475
SEARCH MINHASH_MATCH(doc.text, target, 0.5, "myMinHash") // approximation
476-
LET jaccard = JACCARD(targetSingature, TOKENS(doc.text, "myMinHash"))
476+
LET jaccard = JACCARD(targetSignature, TOKENS(doc.text, "myMinHash"))
477477
FILTER jaccard > 0.75
478478
SORT jaccard DESC
479479
RETURN doc.text

3.10/aql/functions-document.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ HAS( { name: null }, "name" ) // true
108108
HAS( { }, "name" ) // false
109109
```
110110

111-
Note that `HAS()` can not utilize indexes. If it is not necessary to distinguish
111+
Note that `HAS()` cannot utilize indexes. If it is not necessary to distinguish
112112
between explicit and implicit *null* values in your query, you may use an equality
113113
comparison to test for *null* and create a non-sparse index on the attribute you
114114
want to test against:
115115

116116
```aql
117-
FILTER !HAS(doc, "name") // can not use indexes
118-
FILTER IS_NULL(doc, "name") // can not use indexes
117+
FILTER !HAS(doc, "name") // cannot use indexes
118+
FILTER IS_NULL(doc, "name") // cannot use indexes
119119
FILTER doc.name == null // can utilize non-sparse indexes
120120
```
121121

@@ -450,7 +450,7 @@ documents accidentally. For example, the [arangojs](../drivers/js.html) driver
450450
skips attributes with a value of `undefined`, turning `{attr: undefined}` into `{}`.
451451

452452
{% hint 'info' %}
453-
`MATCHES()` can not utilize indexes. You may use plain `FILTER` conditions instead
453+
`MATCHES()` cannot utilize indexes. You may use plain `FILTER` conditions instead
454454
to potentially benefit from existing indexes:
455455

456456
```aql

3.10/aql/functions-fulltext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
description: AQL offers the following functions to filter data based onfulltext indexes
3+
description: AQL offers the following functions to filter data based on fulltext indexes
44
---
55
Fulltext functions
66
==================

3.10/aql/functions-geo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
description: The following helper functions can use geo indexes, but do not have to inall cases
3+
description: The following helper functions can use geo indexes, but do not have to in all cases
44
---
55
Geo functions
66
=============

3.10/aql/functions-miscellaneous.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ to `false`, then nothing will match. If *low* is greater than *high* nothing wil
613613
match either.
614614

615615
{% hint 'info' %}
616-
The regular `IN_RANGE()` function can not utilize indexes, unlike its
616+
The regular `IN_RANGE()` function cannot utilize indexes, unlike its
617617
ArangoSearch counterpart which can use the View index.
618618
{% endhint %}
619619

3.10/aql/fundamentals-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ not allowed.
2323
Whitespace
2424
----------
2525

26-
Whitespaces (blanks, carriage returns, line feeds, and tab stops) can be used
26+
Whitespace (blanks, carriage returns, line feeds, and tab stops) can be used
2727
in the query text to increase its readability. Tokens have to be separated by
28-
any number of whitespaces. Whitespace within strings or names must be enclosed
28+
any number of whitespace. Whitespace within strings or names must be enclosed
2929
in quotes in order to be preserved.
3030

3131
Comments

0 commit comments

Comments
 (0)