@@ 423-430 (lines=8) @@ | ||
420 | 'type' => 'phrase', |
|
421 | ) ) ); |
|
422 | ||
423 | if ( ! empty( $args['boost_query_fields'] ) ) { |
|
424 | $this->add_query( array( |
|
425 | 'multi_match' => array( |
|
426 | 'fields' => $args['boost_query_fields'], |
|
427 | 'query' => $p, |
|
428 | 'operator' => 'and', |
|
429 | ) ), 'should' ); |
|
430 | } |
|
431 | } |
|
432 | ||
433 | return true; |
|
@@ 459-466 (lines=8) @@ | ||
456 | return; |
|
457 | } |
|
458 | ||
459 | if ( ! empty( $args['must_query_fields'] ) ) { |
|
460 | $this->add_query( array( |
|
461 | 'multi_match' => array( |
|
462 | 'fields' => $args['must_query_fields'], |
|
463 | 'query' => $this->current_query, |
|
464 | 'operator' => 'and', |
|
465 | ) ) ); |
|
466 | } |
|
467 | ||
468 | if ( ! empty( $args['boost_query_fields'] ) ) { |
|
469 | $this->add_query( array( |
|
@@ 536-543 (lines=8) @@ | ||
533 | ||
534 | if ( ! $prefix_word ) { |
|
535 | //Space at the end of the query, so skip using a prefix query |
|
536 | if ( ! empty( $args['must_query_fields'] ) ) { |
|
537 | $this->add_query( array( |
|
538 | 'multi_match' => array( |
|
539 | 'fields' => $args['must_query_fields'], |
|
540 | 'query' => $this->current_query, |
|
541 | 'operator' => 'and', |
|
542 | ) ) ); |
|
543 | } |
|
544 | ||
545 | if ( ! empty( $args['boost_query_fields'] ) ) { |
|
546 | $this->add_query( array( |