forked from slot/factual-php-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactualBoost.php
More file actions
34 lines (26 loc) · 747 Bytes
/
Copy pathFactualBoost.php
File metadata and controls
34 lines (26 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* The Boost API enables you to signal to Factual that a specific row returned
* by full-text search in a read API call should be a prominent result for that
* search.
* @author Tyler
* @package Factual
* @license Apache 2.0
*/
require_once("FactualPost.php");
class FactualBoost extends FactualPost {
protected $q = null; //The full text search itself
protected $factual_id = null; //factual ID getting boosted
//protected $query = null; //The query object
public function setQueryString($var){
$this->q = $var;
}
public function setFactualID($var){
$this->factual_id = $var;
}
//override
protected function getPostVars(){
return array("user","q","factual_id");
}
}
?>