Skip to content

Commit

Permalink
Implemented support for userDefinedBoost.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikl committed Jun 16, 2011
1 parent 732e0c3 commit 9cef56c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/request/TingClientSearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class TingClientSearchRequest extends TingClientRequest {
protected $allRelations;
protected $relationData;
protected $agency;
var $userDefinedBoost;
var $userDefinedRanking;

public function getRequest() {
Expand Down Expand Up @@ -68,6 +69,11 @@ public function getRequest() {
));
}

// Include userDefinedBoost if set on the request.
if (is_array($this->userDefinedBoost) && !empty($this->userDefinedBoost)) {
$this->setParameter('userDefinedBoost', $this->userDefinedBoost);
}

// Include userDefinedRanking if set on the request.
if (is_array($this->userDefinedRanking) && !empty($this->userDefinedRanking)) {
$this->setParameter('userDefinedRanking', $this->userDefinedRanking);
Expand Down

0 comments on commit 9cef56c

Please sign in to comment.