Skip to content

Commit b6db60d

Browse files
authored
Fix typos all over the codebase (#5259)
1 parent 6e2e630 commit b6db60d

File tree

116 files changed

+246
-240
lines changed

Some content is hidden

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

116 files changed

+246
-240
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Run `make test-all` to run all tests.
5757
* `make -k test-all docker-compose-down` - the same as above, but tears down the Docker services after running all the tests.
5858
* `make fmt` - runs formatter, this command requires the nightly toolchain to be installed by running `rustup toolchain install nightly`.
5959
* `make fix` - runs formatter and clippy checks.
60-
* `make typos` - runs the spellcheck tool over the codebase. (Install by running `cargo install typos`)
61-
* `make build-docs` - builds docs.
60+
* `make typos` - runs the spellcheck tool over the codebase. (Install by running `cargo install typos-cli`)
61+
* `make docs` - builds docs.
6262
* `make docker-compose-up` - starts Docker services.
6363
* `make docker-compose-down` - stops Docker services.
6464
* `make docker-compose-logs` - shows Docker logs.

_typos.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[files]
22
extend-exclude = ["**/*.json"]
3+
4+
[default.extend-words]
5+
# Don't correct the surname "Teh"
6+
strat = "strat"

distribution/ecs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ deployed, you should probably push the Quickwit image to ECR and use ECR
4242
interface VPC endpoints instead (approx. ~$0.01/hour/AZ).
4343

4444
When using the default image, you will quickly run into the Docker Hub rate
45-
limiting. We recommand pushing the Quickwit image to ECR and configure that as
45+
limiting. We recommend pushing the Quickwit image to ECR and configure that as
4646
`quickwit_image`. Note that the architecture of the image that you push to ECR
4747
must match the `quickwit_cpu_architecture` variable (`ARM64` by default).
4848

distribution/ecs/quickwit/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ variable "enable_cloudwatch_logging" {
6565
}
6666

6767
variable "log_configuration" {
68-
description = "Custom log configuraiton for Quickwit tasks"
68+
description = "Custom log configuration for Quickwit tasks"
6969
default = {}
7070
}
7171

distribution/lambda/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Provided demonstration setups:
5252

5353
### Deploy and run
5454

55-
The Makefile is a usefull entrypoint to show how the Lambda deployment can used.
55+
The Makefile is a useful entrypoint to show how the Lambda deployment can used.
5656

5757
Configure your shell and AWS account:
5858
```bash

distribution/lambda/cdk/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def benchmark_hdfs_indexing():
382382
indexer_result = invoke_hdfs_indexer()
383383
bench_result["lambda_report"] = indexer_result.extract_report()
384384
except Exception as e:
385-
bench_result["invokation_error"] = repr(e)
385+
bench_result["invocation_error"] = repr(e)
386386
print(f"Failed to invoke indexer")
387387

388388
with open(f"lambda-bench.log", "a+") as f:
@@ -409,7 +409,7 @@ def benchmark_hdfs_search(payload: str):
409409
indexer_result = invoke_hdfs_searcher(payload, download_logs=False)
410410
bench_result["lambda_report"] = indexer_result.extract_report()
411411
except Exception as e:
412-
bench_result["invokation_error"] = repr(e)
412+
bench_result["invocation_error"] = repr(e)
413413
print(f"Failed to invoke searcher")
414414

415415
with open(f"lambda-bench.log", "a+") as f:

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
image: postgres:${POSTGRES_VERSION:-12.17-alpine}
5454
container_name: postgres
5555
ports:
56-
- "${MAP_HOST_POSTGRESS:-127.0.0.1}:5432:5432"
56+
- "${MAP_HOST_POSTGRES:-127.0.0.1}:5432:5432"
5757
profiles:
5858
- all
5959
- postgres

docs/configuration/index-config.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fast:
135135
| `tokenizer` | Name of the `Tokenizer`. ([See tokenizers](#description-of-available-tokenizers)) for a list of available tokenizers. | `default` |
136136
| `record` | Describes the amount of information indexed, choices between `basic`, `freq` and `position` | `basic` |
137137
| `fieldnorms` | Whether to store fieldnorms for the field. Fieldnorms are required to calculate the BM25 Score of the document. | `false` |
138-
| `fast` | Whether value is stored in a fast field. The fast field will contain the term ids and the dictionary. The default behaviour for `true` is to store the original text unchanged. The normalizers on the fast field is seperately configured. It can be configured via `normalizer: lowercase`. ([See normalizers](#description-of-available-normalizers)) for a list of available normalizers. | `false` |
138+
| `fast` | Whether value is stored in a fast field. The fast field will contain the term ids and the dictionary. The default behaviour for `true` is to store the original text unchanged. The normalizers on the fast field is separately configured. It can be configured via `normalizer: lowercase`. ([See normalizers](#description-of-available-normalizers)) for a list of available normalizers. | `false` |
139139

140140
##### Description of available tokenizers
141141

@@ -327,7 +327,7 @@ stored: true
327327
indexed: true
328328
fast: true
329329
input_format: hex
330-
output_foramt: hex
330+
output_format: hex
331331
```
332332

333333
**Parameters for bytes field**
@@ -432,7 +432,7 @@ tokenizer: default
432432
record: basic
433433
```
434434
435-
Concatenate fields don't support fast fields, and are never stored. They uses their own tokenizer, independantly of the
435+
Concatenate fields don't support fast fields, and are never stored. They uses their own tokenizer, independently of the
436436
tokenizer configured on the individual fields.
437437
At query time, concatenate fields don't support range queries.
438438
Only the following types are supported inside a concatenate field: text, bool, i64, u64, json. Other types are rejected
@@ -458,7 +458,7 @@ when the features are supported, add these:
458458
---
459459
Only the following types are supported inside a concatenate field: text, datetime, bool, i64, u64, ip, json. Other types are rejected
460460
---
461-
Datetime can only be queried in their RFC-3339 form, possibly omiting later components. # todo! will have to confirm this is achievable
461+
Datetime can only be queried in their RFC-3339 form, possibly omitting later components. # todo! will have to confirm this is achievable
462462
---
463463
plan:
464464
- implement text/bool/i64/u64 (nothing to do on search side for it to work). all gets converted to strings

docs/configuration/storage-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Hardcoding credentials into configuration files is not secure and strongly disco
6666
| Env variable | Description |
6767
| --- | --- |
6868
| `QW_S3_ENDPOINT` | Custom S3 endpoint. |
69-
| `QW_S3_MAX_CONCURRENCY` | Limit the number of concurent requests to S3 |
69+
| `QW_S3_MAX_CONCURRENCY` | Limit the number of concurrent requests to S3 |
7070

7171
#### Storage flavors
7272

docs/deployment/cluster-sizing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Searcher nodes:
6262
<!-- 1GB fast_field_cache_capacity + 0.5GB split_footer_cache_capacity + 0.5GB/req aggregation_memory_limit -->
6363
- Searcher nodes don't use disk unless the [split
6464
cache](../configuration/node-config.md#Searcher-split-cache-configuration) is
65-
explicitely enabled
65+
explicitly enabled
6666

6767
One strength of Quickwit is that its Searchers are stateless, which makes it
6868
easy to scale them up and down based on the workload. Scale the number of

docs/deployment/kubernetes/glasskube.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To deploy Quickwit on Kubernetes, you will need:
1515

1616
1. Install `kubectl` and `glasskube` cli.
1717

18-
To install `kubectl` locally, you can refere to [this documentation](https://kubernetes.io/docs/tasks/tools/#install-kubectl).
18+
To install `kubectl` locally, you can refer to [this documentation](https://kubernetes.io/docs/tasks/tools/#install-kubectl).
1919

2020
To install `glasskube` cli locally, you can refer to [this documentation](https://glasskube.dev/docs/getting-started/install) and choose the right installation options according to your operating system.
2121

@@ -52,7 +52,7 @@ Or use the CLI instead:
5252
glasskube install quickwit
5353
```
5454

55-
In both, you'll have to set the value of thoses parameters:
55+
In both, you'll have to set the value of those parameters:
5656

5757
* `defaultIndexRootUri`: the default index URI is a S3 compliant bucket which usually looks like this: `s3://<bucket-name>/<optional-base-path>`
5858
* `metastoreUri`: if you're not using PostgreSQL and object storage, you can pick the same bucket and value you used for the `defaultIndexRootUri` parameter

docs/get-started/query-language-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Quickwit support various types of clauses to express different kinds of conditio
3333
| term prefix | `field:prefix*` | `app_name:tant*` <br/> `quick*` | A term clause tests the existence of a token starting with the provided value | yes |
3434
| term set | `field:IN [token token ..]` |`severity:IN [error warn]` | A term set clause tests the existence of any of the provided value in the field's tokens| yes |
3535
| phrase | `field:"sequence of tokens"` | `full_name:"john doe"` | A phrase clause tests the existence of the provided sequence of tokens | yes |
36-
| phrase prefix | `field:"sequence of tokens"*` | `title:"how to m"*` | A phrase prefix clause tests the exsitence of a sequence of tokens, the last one used like in a prefix clause | yes |
36+
| phrase prefix | `field:"sequence of tokens"*` | `title:"how to m"*` | A phrase prefix clause tests the existence of a sequence of tokens, the last one used like in a prefix clause | yes |
3737
| all | `*` | `*` | A match-all clause will match every document | no |
3838
| exist | `field:*` | `error:*` | An exist clause tests the existence of any value for the field, it will match only if the field exists | no |
3939
| range | `field:bounds` |`duration:[0 TO 1000}` <br/> `last_name:[banner TO miller]` | A term clause tests the existence of a token between the provided bounds | no |

docs/internals/scroll.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ We only mutate the state server side to update the cache whenever needed.
6060

6161
The idea here is that if that if the put request failed, we can still return the right results even if we have an obsolete version of the `ScrollContext`.
6262

63-
# Quickwit implementation (improvment, quirks and shortcuts)
63+
# Quickwit implementation (improvement, quirks and shortcuts)
6464

6565
We do not do explicitly protect the split from our store Point-In-Time information
6666
from deletion. Instead we simply rely on the existing grace period mechanism (a split

docs/internals/sorting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Quickwit can sort results based on fastfield values or score. This document discuss where and how
44
it happens.
5-
It also tries to describe optimizations that may be enabled (but are not necessarily implemente)
5+
It also tries to describe optimizations that may be enabled (but are not necessarily implemented)
66
by this behavior.
77

88
## Behavior
@@ -35,7 +35,7 @@ results. It reduces the risks of inconsistencies between in-split and between-sp
3535
`SortOrder` gets new `compare` and `compare_opt` method which can be used to compare two values with
3636
respect to the particular sort order required, and with proper handling of the `None` special case.
3737

38-
# Optimization permited
38+
# Optimization permitted
3939

4040
Both orders allow an optimization when sorting by date (either direction), by leveraging splits
4141
meta-data to know in advance if a split can, or not, contain better results. Changing the sorting

docs/reference/cli.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ quickwit index ingest
353353
| `--index` | ID of the target index |
354354
| `--input-path` | Location of the input file. |
355355
| `--batch-size-limit` | Size limit of each submitted document batch. |
356-
| `--wait` | Wait for all documents to be commited and available for search before exiting |
356+
| `--wait` | Wait for all documents to be committed and available for search before exiting |
357357
| `--force` | Force a commit after the last document is sent, and wait for all documents to be committed and available for search before exiting |
358-
| `--commit-timeout` | Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting, which sets the maximum time before commiting splits after their creation. |
358+
| `--commit-timeout` | Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting, which sets the maximum time before committing splits after their creation. |
359359

360360
*Examples*
361361

docs/reference/es_compatible_api.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ POST api/v1/_elastic/_bulk
2121
POST api/v1/_elastic/<index>/_bulk
2222
```
2323

24-
The _bulk ingestion API makes it possible to index a batch of documents, possibly targetting several indices in the same request.
24+
The _bulk ingestion API makes it possible to index a batch of documents, possibly targeting several indices in the same request.
2525

2626
#### Request Body example
2727

@@ -228,7 +228,7 @@ You can pass the `sort` value of the last hit in a subsequent request where othe
228228
```json
229229
{
230230
// keep all fields from the original request
231-
"seach_after": [
231+
"search_after": [
232232
1701962929199
233233
]
234234
}
@@ -256,7 +256,7 @@ POST api/v1/_elastic/_msearch
256256
Runs several search requests at once.
257257

258258
The payload is expected to alternate:
259-
- a `header` json object, containing the targetted index id.
259+
- a `header` json object, containing the targeted index id.
260260
- a `search request body` as defined in the [`_search` endpoint section].
261261

262262

@@ -725,7 +725,7 @@ Search APIs that accept <index_id> requests path parameter also support multi-ta
725725

726726
### Multi-target syntax
727727

728-
In multi-target syntax, you can use a comma or its URL encoded version '%2C' seperated list to run a request on multiple indices: test1,test2,test3. You can also sue [glob-like](https://en.wikipedia.org/wiki/Glob_(programming)) wildcard ( \* ) expressions to target indices that match a pattern: test\* or \*test or te\*t or \*test\*.
728+
In multi-target syntax, you can use a comma or its URL encoded version '%2C' separated list to run a request on multiple indices: test1,test2,test3. You can also sue [glob-like](https://en.wikipedia.org/wiki/Glob_(programming)) wildcard ( \* ) expressions to target indices that match a pattern: test\* or \*test or te\*t or \*test\*.
729729

730730
The multi-target expression has the following constraints:
731731

docs/reference/query-language.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Matches if the document contains any of the tokens provided.
9595
###### Examples
9696
`field:IN [ab cd]` will match 'ab' or 'cd', but nothing else.
9797

98-
###### Perfomance Note
98+
###### Performance Note
9999
This is a lot like writing `field:ab OR field:cd`. When there are only a handful of terms to search for, using ORs is usually faster.
100100
When there are many values to match, a term set query can become more efficient.
101101

@@ -150,7 +150,7 @@ bounds = term TO term
150150
| '*' TO term
151151
152152
comparison_range = comparison_operator term
153-
comparision_operator = '<' | '>' | '<=' | '>='
153+
comparison_operator = '<' | '>' | '<=' | '>='
154154
```
155155

156156
Matches if the document contains a token between the provided bounds for that field.

docs/reference/rest-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ POST api/v1/<index id>/search
6161
| Variable | Type | Description | Default value |
6262
|---------------------|------------|-----------------|-----------------|
6363
| `query` | `String` | Query text. See the [query language doc](query-language.md) | _required_ |
64-
| `start_timestamp` | `i64` | If set, restrict search to documents with a `timestamp >= start_timestamp`, taking advantage of potential time pruning oportunities. The value must be in seconds. | |
65-
| `end_timestamp` | `i64` | If set, restrict search to documents with a `timestamp < end_timestamp`, taking advantage of potential time pruning oportunities. The value must be in seconds. | |
64+
| `start_timestamp` | `i64` | If set, restrict search to documents with a `timestamp >= start_timestamp`, taking advantage of potential time pruning opportunities. The value must be in seconds. | |
65+
| `end_timestamp` | `i64` | If set, restrict search to documents with a `timestamp < end_timestamp`, taking advantage of potential time pruning opportunities. The value must be in seconds. | |
6666
| `start_offset` | `Integer` | Number of documents to skip | `0` |
6767
| `max_hits` | `Integer` | Maximum number of hits to return (by default 20) | `20` |
6868
| `search_field` | `[String]` | Fields to search on if no field name is specified in the query. Comma-separated list, e.g. "field1,field2" | index_config.search_settings.default_search_fields |

quickwit/quickwit-actors/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ fn heartbeat_from_env_or_default() -> Duration {
9090
return Duration::from_millis(500);
9191
}
9292
match std::env::var("QW_ACTOR_HEARTBEAT_SECS") {
93-
Ok(actor_hearbeat_secs_str) => {
94-
if let Ok(actor_hearbeat_secs) = actor_hearbeat_secs_str.parse::<NonZeroU64>() {
95-
info!("set the actor heartbeat to {actor_hearbeat_secs} seconds");
96-
return Duration::from_secs(actor_hearbeat_secs.get());
93+
Ok(actor_heartbeat_secs_str) => {
94+
if let Ok(actor_heartbeat_secs) = actor_heartbeat_secs_str.parse::<NonZeroU64>() {
95+
info!("set the actor heartbeat to {actor_heartbeat_secs} seconds");
96+
return Duration::from_secs(actor_heartbeat_secs.get());
9797
} else {
9898
warn!(
99-
"failed to parse `QW_ACTOR_HEARTBEAT_SECS={actor_hearbeat_secs_str}` in \
99+
"failed to parse `QW_ACTOR_HEARTBEAT_SECS={actor_heartbeat_secs_str}` in \
100100
seconds > 0, using default heartbeat (30 seconds)"
101101
);
102102
};

quickwit/quickwit-cli/src/index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub fn build_index_command() -> Command {
149149
Arg::new("wait")
150150
.long("wait")
151151
.short('w')
152-
.help("Wait for all documents to be commited and available for search before exiting")
152+
.help("Wait for all documents to be committed and available for search before exiting")
153153
.action(ArgAction::SetTrue),
154154
// TODO remove me after Quickwit 0.7.
155155
Arg::new("v2")
@@ -165,7 +165,7 @@ pub fn build_index_command() -> Command {
165165
.conflicts_with("wait"),
166166
Arg::new("commit-timeout")
167167
.long("commit-timeout")
168-
.help("Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting, which sets the maximum time before commiting splits after their creation.")
168+
.help("Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting, which sets the maximum time before committing splits after their creation.")
169169
.required(false)
170170
.global(true),
171171
])

quickwit/quickwit-cli/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ pub mod busy_detector {
397397
})
398398
.is_err()
399399
{
400-
// a debug was emited recently, don't emit log for this one
400+
// a debug was emitted recently, don't emit log for this one
401401
SUPPRESSED_DEBUG_COUNT.fetch_add(1, Ordering::Relaxed);
402402
return;
403403
}

quickwit/quickwit-cli/src/split.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl FromStr for OutputFormat {
124124
"pretty-json" | "pretty_json" => Ok(OutputFormat::PrettyJson),
125125
"table" => Ok(OutputFormat::Table),
126126
_ => bail!(
127-
"unkown output format `{output_format_str}`. supported formats are: `table`, \
127+
"unknown output format `{output_format_str}`. supported formats are: `table`, \
128128
`json`, and `pretty-json`"
129129
),
130130
}

quickwit/quickwit-cluster/src/member.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn parse_indexing_cpu_capacity(node_state: &NodeState) -> CpuCapacity {
131131
if let Ok(indexing_capacity) = CpuCapacity::from_str(indexing_capacity_str) {
132132
indexing_capacity
133133
} else {
134-
error!(indexing_capacity=?indexing_capacity_str, "received an unparseable indexing capacity from node");
134+
error!(indexing_capacity=?indexing_capacity_str, "received an unparsable indexing capacity from node");
135135
CpuCapacity::zero()
136136
}
137137
}

0 commit comments

Comments
 (0)