Skip to content

[Chore] Fix typos #942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
set -euo pipefail

echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on seperate terminals \033[0m"
echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on separate terminals \033[0m"
cleanup_node $es_node_name

master_node_name=${es_node_name}
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/run-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# Its recommended to call `imports.sh` as defined here so that you get access to all variables defined there
#
# Any parameters that test-matrix.yml defines should be declared here with appropiate defaults
# Any parameters that test-matrix.yml defines should be declared here with appropriate defaults

script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/run-tests
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Version 1.1
# - Moved to .buildkite folder and seperated out `run-repository.sh`
# - Moved to .buildkite folder and separated out `run-repository.sh`
# - Add `$RUNSCRIPTS` env var for running Elasticsearch dependent products
script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
Expand Down
2 changes: 1 addition & 1 deletion .ci/run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
set -euo pipefail

echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on seperate terminals \033[0m"
echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on separate terminals \033[0m"
cleanup_node $es_node_name

master_node_name=${es_node_name}
Expand Down
2 changes: 1 addition & 1 deletion .ci/run-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# Its recommended to call `imports.sh` as defined here so that you get access to all variables defined there
#
# Any parameters that test-matrix.yml defines should be declared here with appropiate defaults
# Any parameters that test-matrix.yml defines should be declared here with appropriate defaults

script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
Expand Down
2 changes: 1 addition & 1 deletion .ci/run-tests
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Version 1.1
# - Moved to .ci folder and seperated out `run-repository.sh`
# - Moved to .ci folder and separated out `run-repository.sh`
# - Add `$RUNSCRIPTS` env var for running Elasticsearch dependent products
script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
Expand Down
2 changes: 1 addition & 1 deletion .doc/typedapi/conventions/requests.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
==== Requests

Requests are modeled around structures that follows as closely as possible the {es} API and uses the standard `json/encoding` for serialization.
Corresponding request can be found withing the same package as its endpoint and comes with a Builder that allows you to deep dive into the API by following the types.
Corresponding request can be found within the same package as its endpoint and comes with a Builder that allows you to deep dive into the API by following the types.

[source,go]
------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas
* `FleetGetSecret`
* `FleetPostSecret`

**Exprimental APIs**
**Experimental APIs**

`QueryRulesetList`

Expand All @@ -224,7 +224,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas
`Security.UpdateSettings`

## Typed API
**Exprimental APIs**
**Experimental APIs**

`QueryRuleset.List`

Expand Down
4 changes: 2 additions & 2 deletions _examples/bulk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go run default.go -count=100000 -batch=25000
# → Generated 100,000 articles
# → Sending batch [1/4] [2/4] [3/4] [4/4]
# ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
# Sucessfuly indexed [100,000] documents in 3.423s (29,214 docs/sec)
# Successfully indexed [100,000] documents in 3.423s (29,214 docs/sec)
```

## `indexer.go`
Expand All @@ -39,7 +39,7 @@ go run indexer.go -count=100000 -flush=1000000
# ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
# → Generated 100,000 articles
# ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
# Sucessfuly indexed [100,000] documents in 1.909s (52,383 docs/sec)
# Successfully indexed [100,000] documents in 1.909s (52,383 docs/sec)
```

The helper allows you to `Add()` bulk indexer items, and flushes each batch based on the configured threshold.
Expand Down
2 changes: 1 addition & 1 deletion _examples/bulk/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func main() {
)
} else {
log.Printf(
"Sucessfuly indexed [%s] documents in %s (%s docs/sec)",
"Successfully indexed [%s] documents in %s (%s docs/sec)",
humanize.Comma(int64(numIndexed)),
dur.Truncate(time.Millisecond),
humanize.Comma(int64(1000.0/float64(dur/time.Millisecond)*float64(numIndexed))),
Expand Down
2 changes: 1 addition & 1 deletion _examples/bulk/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func main() {
)
} else {
log.Printf(
"Sucessfuly indexed [%s] documents in %s (%s docs/sec)",
"Successfully indexed [%s] documents in %s (%s docs/sec)",
humanize.Comma(int64(biStats.NumFlushed)),
dur.Truncate(time.Millisecond),
humanize.Comma(int64(1000.0/float64(dur/time.Millisecond)*float64(biStats.NumFlushed))),
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ func TestContentTypeOverride(t *testing.T) {

_, _ = c.Search(c.Search.WithBody(strings.NewReader("")))
})
t.Run("overriden CBOR Content-Type functional options style", func(t *testing.T) {
t.Run("overridden CBOR Content-Type functional options style", func(t *testing.T) {
contentType := "application/cbor"

tp, _ := elastictransport.New(elastictransport.Config{
Expand Down Expand Up @@ -938,7 +938,7 @@ func TestContentTypeOverride(t *testing.T) {
c.Search.WithBody(strings.NewReader("")),
)
})
t.Run("overriden CBOR Content-Type direct call style", func(t *testing.T) {
t.Run("overridden CBOR Content-Type direct call style", func(t *testing.T) {
contentType := "application/cbor"

tp, _ := elastictransport.New(elastictransport.Config{
Expand Down
2 changes: 1 addition & 1 deletion internal/build/cmd/tools/commands/spec/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c Command) writeFileToDest(filename string, data []byte) error {
return fmt.Errorf("cannot write file: %s", err)
}
if c.Debug {
log.Printf("Successfuly written file to : %s", path)
log.Printf("Successfully written file to : %s", path)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion typedapi/indices/rollover/request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typedapi/indices/rollover/rollover.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions typedapi/security/getuserprivileges/get_user_privileges.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typedapi/types/settings.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typedapi/types/textclassificationinferenceoptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typedapi/types/textclassificationinferenceupdateoptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.