1<?php
2
3namespace Elastica\Suggest;
4
5/**
6 * Completion suggester.
7 *
8 * @author Igor Denisenko <im.denisenko@yahoo.com>
9 *
10 * @see   https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html
11 */
12class Completion extends AbstractSuggest
13{
14    /**
15     * Set fuzzy parameter.
16     *
17     * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#fuzzy
18     *
19     * @param array $fuzzy
20     *
21     * @return $this
22     */
23    public function setFuzzy(array $fuzzy): Completion
24    {
25        return $this->setParam('fuzzy', $fuzzy);
26    }
27}
28