193 if ( !empty( $this->_fields ) ) {
194 $args[
'fields'] = $this->_fields;
197 if ( !empty( $this->_analyzer ) ) {
198 $args[
'analyzer'] = $this->_analyzer;
201 $args[
'fuzziness'] = ( $this->_fuzziness > 0 ) ? $this->_fuzziness : 0;
203 $args[
'like_text'] = $this->_likeText;
204 $args[
'prefix_length'] = $this->_prefixLength;
205 $args[
'ignore_tf'] = $this->_ignoreTF;
206 $args[
'max_query_terms'] = $this->_maxQueryTerms;
208 $data = parent::toArray();
209 $args = array_merge( $args, $data[
'fuzzy_like_this'] );
211 return [
'fuzzy_like_this' => $args ];