mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
73cf002293
When we decided to deprecate and remove fuzzy query in #15760, we didn't realize we would take away the possibililty for uses to use a fuzzy query as part of a span query, which is not possible using match query. This means we have to go back and un-deprecate fuzzy query, which will not be removed. Closes #15760
16 lines
309 B
Plaintext
16 lines
309 B
Plaintext
[[java-query-dsl-fuzzy-query]]
|
|
==== Fuzzy Query
|
|
|
|
See {ref}/query-dsl-fuzzy-query.html[Fuzzy Query]
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
QueryBuilder qb = fuzzyQuery(
|
|
"name", <1>
|
|
"kimzhy" <2>
|
|
);
|
|
--------------------------------------------------
|
|
<1> field
|
|
<2> text
|
|
|