We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | $fields = Solr::getFields(); |
| 236 | 236 | $params = []; |
| 237 | 237 | // Restrict the fields to the required ones |
| 238 | - $params['fields'] = $fields['uid'] . ',' . $fields['id'] .',' . $fields['toplevel'] . ',' . $fields['thumbnail'] . ',' . $fields['page']; |
|
| 238 | + $params['fields'] = $fields['uid'] . ',' . $fields['id'] . ',' . $fields['toplevel'] . ',' . $fields['thumbnail'] . ',' . $fields['page']; |
|
| 239 | 239 | foreach ($this->solrConfig as $solr_name) { |
| 240 | 240 | $params['fields'] .= ',' . $solr_name; |
| 241 | 241 | } |
@@ -247,7 +247,8 @@ |
||
| 247 | 247 | * |
| 248 | 248 | * @return array fields |
| 249 | 249 | */ |
| 250 | - public static function getFields() { |
|
| 250 | + public static function getFields() |
|
| 251 | + { |
|
| 251 | 252 | $conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][self::$extKey]); |
| 252 | 253 | |
| 253 | 254 | $fields = []; |
@@ -462,12 +462,12 @@ |
||
| 462 | 462 | ) { |
| 463 | 463 | // Search in document and all subordinates (valid for up to three levels of hierarchy). |
| 464 | 464 | $params['filterquery'][]['query'] = '_query_:"{!join from=' |
| 465 | - . $fields['uid'] .' to=' . $fields['partof'] .'}' |
|
| 466 | - . $fields['uid'] .':{!join from=' . $fields['uid'] .' to=' . $fields['partof'] .'}' |
|
| 467 | - . $fields['uid'] .':' . $this->piVars['id'] . '"' . ' OR {!join from=' |
|
| 468 | - . $fields['uid'] .' to=' . $fields['partof'] .'}' |
|
| 469 | - . $fields['uid'] .':' . $this->piVars['id'] . ' OR ' |
|
| 470 | - . $fields['uid'] .':' . $this->piVars['id']; |
|
| 465 | + . $fields['uid'] . ' to=' . $fields['partof'] . '}' |
|
| 466 | + . $fields['uid'] . ':{!join from=' . $fields['uid'] . ' to=' . $fields['partof'] . '}' |
|
| 467 | + . $fields['uid'] . ':' . $this->piVars['id'] . '"' . ' OR {!join from=' |
|
| 468 | + . $fields['uid'] . ' to=' . $fields['partof'] . '}' |
|
| 469 | + . $fields['uid'] . ':' . $this->piVars['id'] . ' OR ' |
|
| 470 | + . $fields['uid'] . ':' . $this->piVars['id']; |
|
| 471 | 471 | $label .= htmlspecialchars(sprintf($this->pi_getLL('in', ''), Document::getTitle($this->piVars['id']))); |
| 472 | 472 | } |
| 473 | 473 | } |
@@ -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($count)->setRows(20); |
| 63 | 63 | $hl = $query->getHighlighting(); |
| 64 | 64 | $hl->setFields([$fields['fulltext']]); |