3-7-3. Fuzzy match Query
The match
query supports fuzzy matching out of the box:
match
query는 기본적으로 퍼지 일치를 지원한다.
GET /my_index/my_type/_search { "query": { "match": { "text": { "query": "SURPRIZE ME!", "fuzziness": "AUTO", "operator": "and" } } } }
The query string is first analyzed, to produce the terms [surprize, me]
, and then each term is fuzzified using the specified fuzziness
.
query string은, 단어 [surprise, me]
를 만들어내기 위해, 먼저 분석된다. 그 다음에, 각 단어는 지정된 fuzziness
를 사용하여, 퍼지화된다.
Similarly, the multi_match
query also supports fuzziness
, but only when executing with type best_fields
or most_fields
:
유사하게, multi_match
query 또한 fuzziness
를 지원한다. 단, best_fields
나 most_fields
type으로 실행되는 경우에만 지원한다.
GET /my_index/my_type/_search { "query": { "multi_match": { "fields": [ "text", "title" ], "query": "SURPRIZE ME!", "fuzziness": "AUTO" } } }
Both the match
and multi_match
queries also support the prefix_length
and max_expansions
parameters.
match
와 multi_match
query 모두는 prefix_length
와 max_expansions
매개변수도 지원한다.

Fuzziness works only with the basic match
and multi_match
queries. It doesn’t work with phrase matching, common terms, or cross_fields
matches.
fuzziness는 기본적인 match
와 multi_match
query만 동작한다. 구문 일치, common terms, cross_fields
일치에서는 동작하지 않는다.