Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 21c742d

Browse files
committed
Cleans up leading spaces on SQL content
1 parent 510d596 commit 21c742d

File tree

5 files changed

+321
-336
lines changed

5 files changed

+321
-336
lines changed

docs/install/plugins.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ sudo bin/elasticsearch-plugin install file:///path/to/file
154154

155155
### Anomaly Detection
156156

157-
This is a preview plugin, and we recommend not using it in production. It's currently in development and is subject to change.
158-
To test this feature, clone the anomaly detection repo in your own environment and build from it.
157+
This is a preview plugin, which we do not recommend using in production. It's currently in development and is subject to change.
158+
159+
To test this plugin, clone [the anomaly detection repository](https://github.com/opendistro-for-elasticsearch/anomaly-detection) and build it manually using instructions in the README.
159160

160161

161162
### Performance Analyzer

docs/sql/endpoints.md

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can send HTTP GET request with your query embedded in URL parameter.
3737
SQL query:
3838

3939
```console
40-
>> curl -H 'Content-Type: application/json' -X GET localhost:9200/_opendistro/_sql?sql=SELECT * FROM accounts
40+
>> curl -H 'Content-Type: application/json' -X GET localhost:9200/_opendistro/_sql?sql=SELECT * FROM accounts
4141
```
4242

4343
## POST
@@ -51,9 +51,9 @@ You can also send HTTP POST request with your query in request body.
5151
SQL query:
5252

5353
```console
54-
>> curl -H 'Content-Type: application/json' -X POST localhost:9200/_opendistro/_sql -d '{
55-
"query" : "SELECT * FROM accounts"
56-
}'
54+
>> curl -H 'Content-Type: application/json' -X POST localhost:9200/_opendistro/_sql -d '{
55+
"query" : "SELECT * FROM accounts"
56+
}'
5757
```
5858

5959
## Explain
@@ -70,50 +70,46 @@ directly.
7070
Explain query:
7171

7272
```console
73-
>> curl -H 'Content-Type: application/json' -X POST localhost:9200/_opendistro/_sql/_explain -d '{
74-
"query" : "SELECT firstname, lastname FROM accounts WHERE age > 20"
75-
}'
73+
>> curl -H 'Content-Type: application/json' -X POST localhost:9200/_opendistro/_sql/_explain -d '{
74+
"query" : "SELECT firstname, lastname FROM accounts WHERE age > 20"
75+
}'
7676
```
7777

7878
Explain:
7979

8080
```json
81-
{
82-
"from" : 0,
83-
"size" : 200,
84-
"query" : {
85-
"bool" : {
86-
"filter" : [
87-
{
88-
"bool" : {
89-
"must" : [
90-
{
91-
"range" : {
92-
"age" : {
93-
"from" : 20,
94-
"to" : null,
95-
"include_lower" : false,
96-
"include_upper" : true,
97-
"boost" : 1.0
98-
}
99-
}
100-
}
101-
],
102-
"adjust_pure_negative" : true,
103-
"boost" : 1.0
81+
{
82+
"from": 0,
83+
"size": 200,
84+
"query": {
85+
"bool": {
86+
"filter": [{
87+
"bool": {
88+
"must": [{
89+
"range": {
90+
"age": {
91+
"from": 20,
92+
"to": null,
93+
"include_lower": false,
94+
"include_upper": true,
95+
"boost": 1.0
10496
}
10597
}
106-
],
107-
"adjust_pure_negative" : true,
108-
"boost" : 1.0
98+
}],
99+
"adjust_pure_negative": true,
100+
"boost": 1.0
109101
}
110-
},
111-
"_source" : {
112-
"includes" : [
113-
"firstname",
114-
"lastname"
115-
],
116-
"excludes" : [ ]
117-
}
102+
}],
103+
"adjust_pure_negative": true,
104+
"boost": 1.0
118105
}
106+
},
107+
"_source": {
108+
"includes": [
109+
"firstname",
110+
"lastname"
111+
],
112+
"excludes": []
113+
}
114+
}
119115
```

docs/sql/monitoring.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ The meaning of fields in the response is as follows:
4444
SQL query:
4545

4646
```console
47-
>> curl -H 'Content-Type: application/json' -X GET localhost:9200/_opendistro/_sql/stats
47+
>> curl -H 'Content-Type: application/json' -X GET localhost:9200/_opendistro/_sql/stats
4848
```
4949

5050
Result set:
5151

5252
```json
53-
{
54-
"failed_request_count_cb" : 0,
55-
"failed_request_count_cuserr" : 0,
56-
"circuit_breaker" : 0,
57-
"request_total" : 0,
58-
"request_count" : 0,
59-
"failed_request_count_syserr" : 0
60-
}
53+
{
54+
"failed_request_count_cb": 0,
55+
"failed_request_count_cuserr": 0,
56+
"circuit_breaker": 0,
57+
"request_total": 0,
58+
"request_count": 0,
59+
"failed_request_count_syserr": 0
60+
}
6161
```

0 commit comments

Comments
 (0)