Skip to content

Commit 6b98fc2

Browse files
committed
move comments
1 parent ee084d8 commit 6b98fc2

Some content is hidden

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

45 files changed

+180
-135
lines changed

solutions/search/get-started/_snippets/index-basics/example1-curl.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```bash
26
curl -X PUT "$ELASTICSEARCH_URL/books" \
37
-H "Authorization: ApiKey $ELASTIC_API_KEY"
48
```
5-
6-
% WARNING: This snippet is auto-generated. Do not edit directly.
7-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example1-js.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```js
26
const { Client } = require("@elastic/elasticsearch");
37

@@ -17,6 +21,3 @@ async function run() {
1721

1822
run();
1923
```
20-
21-
% WARNING: This snippet is auto-generated. Do not edit directly.
22-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example1-php.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```php
26
<?php
37

@@ -16,6 +20,3 @@ $resp = $client->indices()->create([
1620
echo $resp->asString();
1721

1822
```
19-
20-
% WARNING: This snippet is auto-generated. Do not edit directly.
21-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example1-python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```python
26
import os
37
from elasticsearch import Elasticsearch
@@ -13,6 +17,3 @@ resp = client.indices.create(
1317
print(resp)
1418

1519
```
16-
17-
% WARNING: This snippet is auto-generated. Do not edit directly.
18-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example1-ruby.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```ruby
26
require "elasticsearch"
37

@@ -12,6 +16,3 @@ response = client.indices.create(
1216
print(resp)
1317

1418
```
15-
16-
% WARNING: This snippet is auto-generated. Do not edit directly.
17-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example2-curl.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```bash
26
curl -X POST "$ELASTICSEARCH_URL/books/_doc" \
37
-H "Authorization: ApiKey $ELASTIC_API_KEY" \
48
-H "Content-Type: application/json" \
59
-d '{"name":"Snow Crash","author":"Neal Stephenson","release_date":"1992-06-01","page_count":470}'
610
```
7-
8-
% WARNING: This snippet is auto-generated. Do not edit directly.
9-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example2-js.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```js
26
const response = await client.index({
37
index: "books",
@@ -10,6 +14,3 @@ const response = await client.index({
1014
});
1115
console.log(response);
1216
```
13-
14-
% WARNING: This snippet is auto-generated. Do not edit directly.
15-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example2-php.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```php
26
$resp = $client->index([
37
"index" => "books",
@@ -11,6 +15,3 @@ $resp = $client->index([
1115
echo $resp->asString();
1216

1317
```
14-
15-
% WARNING: This snippet is auto-generated. Do not edit directly.
16-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example2-python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```python
26
resp = client.index(
37
index="books",
@@ -11,6 +15,3 @@ resp = client.index(
1115
print(resp)
1216

1317
```
14-
15-
% WARNING: This snippet is auto-generated. Do not edit directly.
16-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

solutions/search/get-started/_snippets/index-basics/example2-ruby.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
% WARNING: This snippet is auto-generated. Do not edit directly.
2+
3+
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md
4+
15
```ruby
26
response = client.index(
37
index: "books",
@@ -11,6 +15,3 @@ response = client.index(
1115
print(resp)
1216

1317
```
14-
15-
% WARNING: This snippet is auto-generated. Do not edit directly.
16-
% See https://github.com/leemthompo/python-console-converter/blob/main/README.md

0 commit comments

Comments
 (0)