@@ -58,7 +58,7 @@ |
||
| 58 | 58 | if ($solr->ready) { |
| 59 | 59 | $query = $solr->service->createSelect(); |
| 60 | 60 | $query->setFields([$fields['id'], $fields['uid'], $fields['page']]); |
| 61 | - $query->setQuery($fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $fields['uid'] . ':' . intval($parameters['uid'])); |
|
| 61 | + $query->setQuery($fields['fulltext'].':('.Solr::escapeQuery((string) $parameters['q']).') AND '.$fields['uid'].':'.intval($parameters['uid'])); |
|
| 62 | 62 | $query->setStart($start)->setRows(20); |
| 63 | 63 | $query->addSort($fields['page'], $query::SORT_ASC); |
| 64 | 64 | $hl = $query->getHighlighting(); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $query->addSort($fields['page'], $query::SORT_ASC); |
| 64 | 64 | $hl = $query->getHighlighting(); |
| 65 | 65 | $hl->setFields([$fields['fulltext']]); |
| 66 | - $hl->setUseFastVectorHighlighter(true); |
|
| 66 | + $hl->setUseFastVectorHighlighter(TRUE); |
|
| 67 | 67 | $results = $solr->service->select($query); |
| 68 | 68 | $output['numFound'] = $results->getNumFound(); |
| 69 | 69 | $highlighting = $results->getHighlighting(); |