You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/sql/functions/search.asciidoc
+5-5
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,11 @@ case of an `or` operator or all of the low frequency terms in the case of an `an
61
61
<<query-dsl-match-query-cutoff>> page.
62
62
63
63
NOTE: The allowed optional parameters for a single-field `MATCH()` variant (for the `match` {es} query) are: `analyzer`, `auto_generate_synonyms_phrase_query`,
NOTE: The allowed optional parameters for a multi-field `MATCH()` variant (for the `multi_match` {es} query) are: `analyzer`, `auto_generate_synonyms_phrase_query`,
Copy file name to clipboardExpand all lines: x-pack/plugin/sql/qa/src/main/resources/fulltext.csv-spec
+54
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,60 @@ SELECT emp_no, first_name, gender, last_name FROM test_emp WHERE QUERY('Man*', '
30
30
10096 |Jayson |M |Mandell
31
31
;
32
32
33
+
matchWithFuzziness
34
+
SELECT first_name, SCORE() FROM test_emp WHERE MATCH(first_name, 'geo', 'fuzziness=6');
35
+
36
+
first_name:s | SCORE():f
37
+
----------------+---------------
38
+
Gino |1.3684646
39
+
Gao |2.7369292
40
+
;
41
+
42
+
matchWithFuzzinessAuto
43
+
SELECT first_name, SCORE() FROM test_emp WHERE MATCH(first_name, 'geo', 'fuzziness=AUTO:1,7;fuzzy_rewrite=scoring_boolean');
44
+
45
+
first_name:s | SCORE():f
46
+
----------------+---------------
47
+
Gao |2.7369292
48
+
;
49
+
50
+
multiMatchWithFuzzinessAuto
51
+
SELECT first_name, last_name, SCORE() FROM test_emp WHERE MATCH('first_name^3,last_name^5', 'geo hir', 'fuzziness=AUTO:1,5;operator=or') ORDER BY first_name;
0 commit comments