Skip to content

Commit 99f503e

Browse files
committed
[DOCS] Fix REST tests in SQL docs
Fixed a search & replace gone awry Tweaked the docs a bit
1 parent 4385915 commit 99f503e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

x-pack/docs/en/sql/index.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ indices and return results in tabular format.
3535
SQL and print tabular results.
3636
<<sql-jdbc,JDBC>>::
3737
A JDBC driver for {es}.
38-
<<sql-functions,Functions and Operators>>::
39-
List of functions and operators supported.
4038
<<sql-spec,SQL Language>>::
4139
Overview of the {es-sql} language, such as supported data types, commands and
4240
syntax.
41+
<<sql-functions,Functions and Operators>>::
42+
List of functions and operators supported.
4343
--
4444

4545
include::overview.asciidoc[]
4646
include::getting-started.asciidoc[]
4747
include::concepts.asciidoc[]
4848
include::security.asciidoc[]
4949
include::endpoints/index.asciidoc[]
50-
include::functions/index.asciidoc[]
5150
include::language/index.asciidoc[]
51+
include::functions/index.asciidoc[]
5252
include::appendix/index.asciidoc[]
5353

5454
:jdbc-tests!:

x-pack/docs/en/sql/language/syntax/select.asciidoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ which results in something like:
191191
[source,text]
192192
--------------------------------------------------
193193
author | name | page_count | release_date
194-
-----------------`--------------------`---------------`------------------------
194+
-----------------+--------------------+---------------+------------------------
195195
Peter F. Hamilton|Pandora's Star |768 |2004-03-02T00:00:00.000Z
196196
Vernor Vinge |A Fire Upon the Deep|613 |1992-06-01T00:00:00.000Z
197197
Frank Herbert |Dune |604 |1965-06-01T00:00:00.000Z
198198
Alastair Reynolds|Revelation Space |585 |2000-03-15T00:00:00.000Z
199199
James S.A. Corey |Leviathan Wakes |561 |2011-06-02T00:00:00.000Z
200200
--------------------------------------------------
201-
// TESTRESPONSE[s/\|/\\|/ s/\`/\\`/]
201+
// TESTRESPONSE[s/\|/\\|/ s/\+/\\+/]
202202
// TESTRESPONSE[_cat]
203203

204204
[[sql-syntax-order-by-score]]
@@ -228,13 +228,13 @@ Which results in something like:
228228
[source,text]
229229
--------------------------------------------------
230230
SCORE() | author | name | page_count | release_date
231-
---------------`---------------`-------------------`---------------`------------------------
231+
---------------+---------------+-------------------+---------------+------------------------
232232
2.288635 |Frank Herbert |Dune |604 |1965-06-01T00:00:00.000Z
233233
1.8893257 |Frank Herbert |Dune Messiah |331 |1969-10-15T00:00:00.000Z
234234
1.6086555 |Frank Herbert |Children of Dune |408 |1976-04-21T00:00:00.000Z
235235
1.4005898 |Frank Herbert |God Emperor of Dune|454 |1981-05-28T00:00:00.000Z
236236
--------------------------------------------------
237-
// TESTRESPONSE[s/\|/\\|/ s/\`/\\`/ s/\(/\\\(/ s/\)/\\\)/]
237+
// TESTRESPONSE[s/\|/\\|/ s/\+/\\+/ s/\(/\\\(/ s/\)/\\\)/]
238238
// TESTRESPONSE[_cat]
239239

240240
Note that you can return `SCORE()` by adding it to the where clause. This
@@ -253,13 +253,13 @@ POST /_xpack/sql?format=txt
253253
[source,text]
254254
--------------------------------------------------
255255
SCORE() | author | name | page_count | release_date
256-
---------------`---------------`-------------------`---------------`------------------------
256+
---------------+---------------+-------------------+---------------+------------------------
257257
2.288635 |Frank Herbert |Dune |604 |1965-06-01T00:00:00.000Z
258258
1.4005898 |Frank Herbert |God Emperor of Dune|454 |1981-05-28T00:00:00.000Z
259259
1.6086555 |Frank Herbert |Children of Dune |408 |1976-04-21T00:00:00.000Z
260260
1.8893257 |Frank Herbert |Dune Messiah |331 |1969-10-15T00:00:00.000Z
261261
--------------------------------------------------
262-
// TESTRESPONSE[s/\|/\\|/ s/\`/\\`/ s/\(/\\\(/ s/\)/\\\)/]
262+
// TESTRESPONSE[s/\|/\\|/ s/\+/\\+/ s/\(/\\\(/ s/\)/\\\)/]
263263
// TESTRESPONSE[_cat]
264264

265265
NOTE:

x-pack/docs/en/sql/overview.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{es-sql} aims to provide a powerful yet lightweight SQL interface to {es}.
55

66
[[sql-introduction]]
7+
[float]
78
=== Introduction
89

910
{es-sql} is an X-Pack component that allows SQL-like queries to be executed in real-time against {es}.
@@ -12,6 +13,7 @@ _natively_ inside {es}.
1213
One can think of {es-sql} as a _translator_, one that understands both SQL and {es} and makes it easy to read and process data in real-time, at scale by leveraging {es} capabilities.
1314

1415
[[sql-why]]
16+
[float]
1517
=== Why {es-sql} ?
1618

1719
Native integration::

0 commit comments

Comments
 (0)