From b205d2371b088a683ed778aab3c2d27b4e351a7d Mon Sep 17 00:00:00 2001 From: Peng Huo Date: Mon, 5 Feb 2024 21:10:25 -0800 Subject: [PATCH] Fix functions.rst for JDK 21 Signed-off-by: Peng Huo --- docs/user/dql/functions.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/user/dql/functions.rst b/docs/user/dql/functions.rst index 5af21df2bf..b445fffa63 100644 --- a/docs/user/dql/functions.rst +++ b/docs/user/dql/functions.rst @@ -4082,7 +4082,7 @@ Available parameters include: Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values:: - os> select * from books where multi_match(['title'], 'Pooh House'); + os> select id, title, author from books where multi_match(['title'], 'Pooh House'); fetched rows / total rows = 2/2 +------+--------------------------+----------------------+ | id | title | author | @@ -4093,7 +4093,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters Another example to show how to set custom values for the optional parameters:: - os> select * from books where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default); + os> select id, title, author from books where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default); fetched rows / total rows = 1/1 +------+--------------------------+----------------------+ | id | title | author | @@ -4152,7 +4152,7 @@ Available parameters include: Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values:: - os> select * from books where simple_query_string(['title'], 'Pooh House'); + os> select id, title, author from books where simple_query_string(['title'], 'Pooh House'); fetched rows / total rows = 2/2 +------+--------------------------+----------------------+ | id | title | author | @@ -4163,7 +4163,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters Another example to show how to set custom values for the optional parameters:: - os> select * from books where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND'); + os> select id, title, author from books where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND'); fetched rows / total rows = 1/1 +------+--------------------------+----------------------+ | id | title | author | @@ -4214,7 +4214,7 @@ Available parameters include: Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values:: - os> select * from books where query_string(['title'], 'Pooh House'); + os> select id, title, author from books where query_string(['title'], 'Pooh House'); fetched rows / total rows = 2/2 +------+--------------------------+----------------------+ | id | title | author | @@ -4225,7 +4225,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters Another example to show how to set custom values for the optional parameters:: - os> select * from books where query_string(['title'], 'Pooh House', default_operator='AND'); + os> select id, title, author from books where query_string(['title'], 'Pooh House', default_operator='AND'); fetched rows / total rows = 1/1 +------+--------------------------+----------------------+ | id | title | author | @@ -4276,7 +4276,7 @@ Available parameters include: Example with only ``query_expressions``, and all other parameters are set default values:: - os> select * from books where query('title:Pooh House'); + os> select id, title, author from books where query('title:Pooh House'); fetched rows / total rows = 2/2 +------+--------------------------+----------------------+ | id | title | author | @@ -4287,7 +4287,7 @@ Example with only ``query_expressions``, and all other parameters are set defaul Another example to show how to set custom values for the optional parameters:: - os> select * from books where query('title:Pooh House', default_operator='AND'); + os> select id, title, author from books where query('title:Pooh House', default_operator='AND'); fetched rows / total rows = 1/1 +------+--------------------------+----------------------+ | id | title | author | @@ -4321,7 +4321,7 @@ The `score_query` and `scorequery` functions are alternative names for the `scor Example boosting score:: - os> select *, _score from books where score(query('title:Pooh House', default_operator='AND'), 2.0); + os> select id, title, author, _score from books where score(query('title:Pooh House', default_operator='AND'), 2.0); fetched rows / total rows = 1/1 +------+--------------------------+----------------------+-----------+ | id | title | author | _score | @@ -4329,7 +4329,7 @@ Example boosting score:: | 1 | The House at Pooh Corner | Alan Alexander Milne | 1.5884793 | +------+--------------------------+----------------------+-----------+ - os> select *, _score from books where score(query('title:Pooh House', default_operator='AND'), 5.0) OR score(query('title:Winnie', default_operator='AND'), 1.5); + os> select id, title, author, _score from books where score(query('title:Pooh House', default_operator='AND'), 5.0) OR score(query('title:Winnie', default_operator='AND'), 1.5); fetched rows / total rows = 2/2 +------+--------------------------+----------------------+-----------+ | id | title | author | _score |