Skip to content

Commit

Permalink
[Unified search] Improve the SQL documentation (#147838)
Browse files Browse the repository at this point in the history
## Summary

Part of #147803

Replaces the text with the proposed text from the docs team

<img width="997" alt="image"
src="https://user-images.githubusercontent.com/17003240/208633280-d6a78732-0034-454f-9f62-cf6ea14ce4f3.png">
  • Loading branch information
stratoula authored Dec 22, 2022
1 parent 27944db commit cffcab1
Showing 1 changed file with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,20 @@ export const initialSection = (
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.markdown',
{
defaultMessage: `## How it works
defaultMessage: `## About Elasticsearch SQL
With Elasticsearch SQL, you can access that full text search,
blazing speed, and effortless scalability with a familiar query syntax.
You can use SQL to search and aggregate data natively inside Elasticsearch.
One can think of Elasticsearch SQL as a translator,
one that understands both SQL and Elasticsearch and makes it easy
to read and process data in real-time.
An example SQL query can be:
Use Elasticsearch SQL to search and aggregate data inside Elasticsearch. This query language provides full text search with a familiar syntax. Here is an example query:
\`\`\`
SELECT * FROM library
ORDER BY page_count DESC LIMIT 5
\`\`\`
As a general rule, Elasticsearch SQL as the name indicates provides a SQL interface to Elasticsearch.
As such, it follows the SQL terminology and conventions first, whenever possible.
Elasticsearch SQL currently accepts only one command at a time. A command is a sequence of tokens terminated by the end of input stream.
Elasticsearch SQL provides a comprehensive set of built-in operators and functions.
Elasticsearch SQL:
- Provides a comprehensive set of built-in operators and functions.
- Follows SQL terminology and conventions.
- Accepts one command per line. A command is a sequence of tokens terminated by the end of input stream
`,
}
Expand Down

0 comments on commit cffcab1

Please sign in to comment.