Code Duplication    Length = 9-9 lines in 2 locations

_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-parser.php 2 locations

@@ 460-468 (lines=9) @@
457
			) ) );
458
		}
459
460
		if ( ! empty( $args['boost_query_fields'] ) ) {
461
			$this->add_query( array(
462
				'multi_match' => array(
463
					'fields' => $args['boost_query_fields'],
464
					'query' => $this->current_query,
465
					'operator' => $args['boost_operator'],
466
					'type' => $args['boost_query_type'],
467
			) ), 'should' );
468
		}
469
470
	}
471
@@ 537-545 (lines=9) @@
534
					) ) );
535
			}
536
537
			if ( ! empty( $args['boost_query_fields'] ) ) {
538
				$this->add_query( array(
539
					'multi_match' => array(
540
						'fields' => $args['boost_query_fields'],
541
						'query' => $this->current_query,
542
						'operator' => $args['boost_operator'],
543
						'type' => $args['boost_query_type'],
544
					) ), 'should' );
545
			}
546
		} else {
547
548
			//must match the prefix word and the prefix remainder