Skip to content

Commit

Permalink
Turn off the Guide Page boosting, for now
Browse files Browse the repository at this point in the history
Updates #25
  • Loading branch information
inghamn committed Mar 10, 2022
1 parent 8979ff4 commit e008b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Web/Search/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public function query(string $search,
$dismax->setQueryFields ('ss_title^2 ss_summary^2 tm_X3b_en_aggregated_field');
$dismax->setPhraseFields('ss_title^4 ss_summary^3 tm_X3b_en_aggregated_field^2');
$dismax->setPhraseSlop(3);
$dismax->addBoostQuery(['key'=>0, 'query'=>'ss_type:guide_page^2']);
//$dismax->addBoostQuery(['key'=>0, 'query'=>'ss_type:guide_page^2']);

// This filters out old documents from search results
// It declares a curve from 1 to zero where it hits zero at $M.
// So, documents older than $m will not show up in search results at all.
Expand Down

0 comments on commit e008b40

Please sign in to comment.