| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function build() |
||
| 24 | { |
||
| 25 | // only premium offers |
||
| 26 | $this->must(new Term('is_ads', true)); |
||
| 27 | |||
| 28 | $this->score(new Random()); |
||
| 29 | $this->size(0, 4); |
||
| 30 | |||
| 31 | $this->source([ |
||
| 32 | 'id', |
||
| 33 | 'title', |
||
| 34 | 'slug', |
||
| 35 | 'is_remote', |
||
| 36 | 'remote_range', |
||
| 37 | 'firm.*', |
||
| 38 | 'locations', |
||
| 39 | 'tags', |
||
| 40 | 'currency_symbol', |
||
| 41 | 'salary_from', |
||
| 42 | 'salary_to' |
||
| 43 | ]); |
||
| 44 | |||
| 45 | return QueryBuilder::build(); |
||
|
|
|||
| 46 | } |
||
| 48 |