Skip to content

Commit

Permalink
[DOCS] Updates generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed May 17, 2024
1 parent dc75400 commit c255ddc
Show file tree
Hide file tree
Showing 51 changed files with 227 additions and 820 deletions.
7 changes: 0 additions & 7 deletions docs/examples/guide/12cb1a87cdd0326cbe5affabdbf2ffe2.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
----
response = client.inference.inference(
task_type: 'sparse_embedding',
model_id: 'my-elser-model',
inference_id: 'my-elser-model',
body: {
input: 'The sky above the port was the color of television tuned to a dead channel.'
}
Expand Down
37 changes: 0 additions & 37 deletions docs/examples/guide/197dc41c8df9629e145b3064c63b2ccc.asciidoc

This file was deleted.

34 changes: 34 additions & 0 deletions docs/examples/guide/1fcc4a3280be399753dcfd5c489ff682.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[source, ruby]
----
response = client.indices.create(
index: 'idx',
body: {
mappings: {
_source: {
mode: 'synthetic'
},
properties: {
my_range: {
type: 'ip_range'
}
}
}
}
)
puts response
response = client.index(
index: 'idx',
id: 1,
body: {
my_range: [
'10.0.0.0/24',
{
gte: '10.0.0.0',
lte: '10.0.0.255'
}
]
}
)
puts response
----
91 changes: 0 additions & 91 deletions docs/examples/guide/2cafbc456bed3b7c8780e5557aab1d6b.asciidoc

This file was deleted.

46 changes: 0 additions & 46 deletions docs/examples/guide/2da48241cfc21d2c57dc970845470bda.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[source, ruby]
----
response = client.indices.put_settings(
index: 'my_source_index',
index: 'my-index-000001',
body: {
settings: {
'index.blocks.write' => true
}
'index.indexing.slowlog.include.user' => true
}
)
puts response
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[source, ruby]
----
response = client.connector_sync_job.list(
response = client.connector.sync_job_list(
from: 0,
size: 2
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[source, ruby]
----
response = client.indices.put_settings(
index: 'my_source_index',
index: 'my-index-000001',
body: {
settings: {
'index.blocks.write' => true
}
'index.search.slowlog.include.user' => true
}
)
puts response
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[source, ruby]
----
response = client.connector_sync_job.check_in(
response = client.connector.sync_job_check_in(
connector_sync_job_id: 'my-connector-sync-job'
)
puts response
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[source, ruby]
----
response = client.connector_sync_job.delete(
response = client.connector.sync_job_delete(
connector_sync_job_id: 'my-connector-sync-job-id'
)
puts response
Expand Down
8 changes: 0 additions & 8 deletions docs/examples/guide/3f3b3e207f79303ce6f86e03e928e062.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[source, ruby]
----
response = client.connector_sync_job.post(
response = client.connector.sync_job_post(
body: {
id: 'connector-id',
job_type: 'full',
Expand Down
52 changes: 0 additions & 52 deletions docs/examples/guide/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
response = client.cluster.put_settings(
body: {
persistent: {
'cluster.remote.cluster_two.skip_unavailable' => true
'cluster.routing.allocation.awareness.attributes' => 'rack_id'
}
}
)
Expand Down
14 changes: 0 additions & 14 deletions docs/examples/guide/4aa510f34a0358fecc8d764dd099b843.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
----
response = client.inference.delete_model(
task_type: 'sparse_embedding',
model_id: 'my-elser-model'
inference_id: 'my-elser-model'
)
puts response
----

0 comments on commit c255ddc

Please sign in to comment.