@@ -525,8 +525,8 @@ |
||
| 525 | 525 | $searchResult['snippet'] = $doc['snippet']; |
| 526 | 526 | $searchResult['highlight'] = $doc['highlight']; |
| 527 | 527 | $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end |
| 528 | - preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
| 529 | - preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
| 528 | + preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
| 529 | + preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
| 530 | 530 | } |
| 531 | 531 | $documents[$doc['uid']]['searchResults'][] = $searchResult; |
| 532 | 532 | } |
@@ -38,15 +38,15 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | private int $offset; |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Constructs SolrSearchQuery instance. |
|
| 43 | - * |
|
| 44 | - * @access public |
|
| 45 | - * |
|
| 46 | - * @param SolrSearch $solrSearch |
|
| 47 | - * |
|
| 48 | - * @return void |
|
| 49 | - */ |
|
| 41 | + /** |
|
| 42 | + * Constructs SolrSearchQuery instance. |
|
| 43 | + * |
|
| 44 | + * @access public |
|
| 45 | + * |
|
| 46 | + * @param SolrSearch $solrSearch |
|
| 47 | + * |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 50 | 50 | public function __construct($solrSearch) |
| 51 | 51 | { |
| 52 | 52 | $this->solrSearch = $solrSearch; |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | // field for which highlighting is going to be performed, |
| 153 | 153 | // is required if you want to have OCR highlighting |
| 154 | 154 | $solrRequest->addParam('hl.ocr.fl', $this->fields['fulltext']); |
| 155 | - // return the coordinates of highlighted search as absolute coordinates |
|
| 155 | + // return the coordinates of highlighted search as absolute coordinates |
|
| 156 | 156 | $solrRequest->addParam('hl.ocr.absoluteHighlights', 'on'); |
| 157 | 157 | // max amount of snippets for a single page |
| 158 | 158 | $solrRequest->addParam('hl.snippets', '40'); |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | class DocumentValidator |
| 31 | 31 | { |
| 32 | - /** |
|
| 33 | - * @access protected |
|
| 34 | - * @var Logger This holds the logger |
|
| 35 | - */ |
|
| 32 | + /** |
|
| 33 | + * @access protected |
|
| 34 | + * @var Logger This holds the logger |
|
| 35 | + */ |
|
| 36 | 36 | protected Logger $logger; |
| 37 | 37 | |
| 38 | 38 | /** |