Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Add JDK-21 to GA worklflows #2509

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/user/dql/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,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 |
Expand All @@ -4109,7 +4109,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 |
Expand Down Expand Up @@ -4168,7 +4168,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 |
Expand All @@ -4179,7 +4179,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 |
Expand Down Expand Up @@ -4230,7 +4230,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 |
Expand All @@ -4241,7 +4241,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 |
Expand Down Expand Up @@ -4292,7 +4292,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 |
Expand All @@ -4303,7 +4303,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 |
Expand Down Expand Up @@ -4337,15 +4337,15 @@ 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 |
|------+--------------------------+----------------------+-----------|
| 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 |
Expand Down
12 changes: 6 additions & 6 deletions docs/user/ppl/functions/relevance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where multi_match(['title'], 'Pooh House');
os> source=books | where multi_match(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -184,7 +184,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> source=books | where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default);
os> source=books | where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default) | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -226,7 +226,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where simple_query_string(['title'], 'Pooh House');
os> source=books | where simple_query_string(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -237,7 +237,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> source=books | where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND');
os> source=books | where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND') | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -333,7 +333,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where query_string(['title'], 'Pooh House');
os> source=books | where query_string(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -344,7 +344,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> source=books | where query_string(['title'], 'Pooh House', default_operator='AND');
os> source=books | where query_string(['title'], 'Pooh House', default_operator='AND') | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down
Loading