Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 468-476 (lines=9) @@
465
			) ) );
466
		}
467
468
		if ( ! empty( $args['boost_query_fields'] ) ) {
469
			$this->add_query( array(
470
				'multi_match' => array(
471
					'fields' => $args['boost_query_fields'],
472
					'query' => $this->current_query,
473
					'operator' => $args['boost_operator'],
474
					'type' => $args['boost_query_type'],
475
			) ), 'should' );
476
		}
477
478
	}
479
@@ 545-553 (lines=9) @@
542
					) ) );
543
			}
544
545
			if ( ! empty( $args['boost_query_fields'] ) ) {
546
				$this->add_query( array(
547
					'multi_match' => array(
548
						'fields' => $args['boost_query_fields'],
549
						'query' => $this->current_query,
550
						'operator' => $args['boost_operator'],
551
						'type' => $args['boost_query_type'],
552
					) ), 'should' );
553
			}
554
		} else {
555
556
			//must match the prefix word and the prefix remainder