Skip to content

Commit

Permalink
Fix full-text-search examples
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaverner committed Nov 1, 2024
1 parent 2668cd4 commit e0ce178
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/reference/esql/esql-limitations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,25 @@ For example, this query is valid:

[source,esql]
----
| WHERE field LIKE "elasticsearch query language"
FROM books
| WHERE MATCH(author, "Faulkner") AND MATCH(author, "Tolkien")
----

But this query will fail:
But this query will fail due to the <<esql-stats-by, STATS>> command:

[source,esql]
----
| WHERE field LIKE "elasticsearch query language"
FROM books
| STATS AVG(price) BY author
| WHERE MATCH(author, "Faulkner")
----

And this query will fail due to the disjunction:

[source,esql]
----
FROM books
| WHERE MATCH(author, "Faulkner") OR author LIKE "Hemingway"
----

Note that, because of <<esql-limitations-text-fields,the way {esql} treats `text` values>>,
Expand Down

0 comments on commit e0ce178

Please sign in to comment.