Set field fuzzy rewrite.

@param string $field
@param string $fuzzyRewrite

@return $this
322094
public function setFieldFuzzyRewrite(string $field, string $fuzzyRewrite): self
    {
        return $this->setFieldParam($field, 'fuzzy_rewrite', $fuzzyRewrite);
    }
261205
public function set($field, $value = null)
    {
        if (! is_array($field)) {
            $field = [$field => $value];
        }

        foreach ($field as $f => $v) {
            $this->update('$set', $f, $v);
        }

        return $this;
    }
1122348
public function addField($field)
    {
        if ($field instanceof AttachmentField) {
            $this->fields[] = $field;

            return $this;
        } elseif (is_array($field)) {
            $this->fields[] = new AttachmentField($field);

            return $this;
        }

        throw new InvalidArgumentException('The attachment field must be an instance of Maknz\Slack\AttachmentField or a keyed array');
    }
131123
public function setField(string $field) : void
    {
        $field = trim($field);
        if (empty($field)) {
            throw new InvalidArgumentException("Field is empty");
        }

        $this->field = $field;
    }
100809
protected function initializeField($field)
    {
        $field->setParentContext($this);
        $this->getFieldManager()->pushField($field);
        return $field;
    }
1064630
def fuzzy(cls, field, value, boost=None, min_similarity=None, prefix_length=None):
        '''
        
        '''
        instance = cls(fuzzy={field: {'value': value}})
        if boost is not None:
            instance['fuzzy'][field]['boost'] = boost
        if min_similarity is not None:
            instance['fuzzy'][field]['min_similarity'] = min_similarity
        if prefix_length is not None:
            instance['fuzzy'][field]['prefix_length'] = prefix_length
        return instance
191962
public function whereNotInset($field, $value)
    {
        foreach ($this->queries as $query) {
            $query->whereNotInset($field, $value);
        }

        return $this;
    }
596605
protected function setInitials(string $field, string $order = 'desc', int $perpage = 10)
    {
        $this->sg_initial_field   = $field;
        $this->sg_initial_order   = $order;
        $this->sg_initial_perpage = $perpage;
        return $this;
    }
452346
public function set($field, $value, $type = 0)
    {
        $this->_write_fields[] = $field;
        $this->_write_values[] = $value;
        $this->_write_field_types[] = $type;

        return $this;
    }
928990
public function onceBasic($field = 'email')
	{
		if ( ! $this->once($this->getBasicCredentials($this->getRequest(), $field)))
		{
			return $this->getBasicResponse();
		}
	}
341843
public function set($field, $value = UNDEFINED)
    {
        if ($value === false) {
            throw $this->exception('Value "false" is not supported by SQL')
                ->addMoreInfo('field', $field);
        }
        if (is_array($field)) {
            foreach ($field as $key => $value) {
                $this->set($key, $value);
            }

            return $this;
        }

        if ($value === UNDEFINED) {
            throw $this->exception('Specify value when calling set()');
        }

        $this->args['set'][$field] = $value;

        return $this;
    }
377749
public function prefilled($field, $value)
    {
        $this->fields[ $field ] = [
            'type'  => self::TYPE_PREFILLED_VALUE,
            'value' => $value
        ];

        return $this;
    }
1059260
public function ensure2dIndex($field)
    {
        if (is_array($field)) {
            $keys = array_fill_keys($field, '2d');
        } else {
            $keys = array(
                $field => '2d',
            );
        }

        $this->getMongoCollection()->createIndex($keys);

        return $this;
    }
915411
public function distinct($field)
    {
        $this->query['type'] = Query::TYPE_DISTINCT;
        $this->query['distinct'] = $field;
        return $this;
    }
1304277
public function removeField($field)
    {
        $field = $this->resolveAlias($field);

        unset($this->fields[$field], $this->data[$field]);

        return $this;
    }
1051551
public function setPreferWrite()
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->syncmode = self::MODE_WRITE;
        }

        return $this;
    }
589882
public function setFieldZeroTermsQuery(string $field, string $zeroTermQuery = self::ZERO_TERM_NONE): self
    {
        return $this->setFieldParam($field, 'zero_terms_query', $zeroTermQuery);
    }