SQL: Fix up docs around score

Explain what happens if you have multiple full text queries in your
`WHERE` clause.

Original commit: elastic/x-pack-elasticsearch@cbae17b465
This commit is contained in:
Nik Everett 2018-02-02 11:24:23 -05:00
parent 34fe0beb30
commit 2a5eacfc0a
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@ James S.A. Corey |Leviathan Wakes |561 |2011-06-02T00:00:00.000Z
[[sql-spec-syntax-order-by-score]]
For sorting by score to be meaningful you need to include a full
text query in the `WHERE` clause. For example:
text query in the `WHERE` clause. If you include multiple full
text queries in the `WHERE` clause then their scores will be
combined using the same rules as Elasticsearch's
<<query-dsl-bool-query,bool query>>. Here is a simple example:
[source,js]
--------------------------------------------------