Project

General

Profile

Actions

Bug #67843

closed

Epic #65814: Make Indexed search extbase plugin shine

Wrong queries in indexSearchRepository

Added by Tymoteusz Motylewski over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
Start date:
2015-06-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Duplicate 'AND' in IndexSearchRepository.php

Line 562 and 627 both add a 'AND' string so the final query contains 'AND AND' and gets invalid.

The pi-based version of indexed search does not contain 'AND' in function execFinalQuery (SearchFormController.php line 1108)

There is something wrong with the implode function in statement
$wordSel = '(' . implode(' OR ', $this->wSelClauses) . ') AND ';
in line 614 in IndexSearchRepository.php
Implode returns double ORs ('OR OR'). Therefore the query gets invalid.

There are only search results for the first item in defaultFreeIndexUidList.
Other items return "no result" even if there are some.


Files

indexed_search_wSelClauses.patch (2.53 KB) indexed_search_wSelClauses.patch Manuel Link, 2015-06-30 22:46

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #38767: Incorrect order of search-resultClosed2012-07-09

Actions
Has duplicate TYPO3 Core - Bug #68667: Indexed Serach: Experimental plugin produces invalid SQL-queriesClosed2015-07-31

Actions
Actions

Also available in: Atom PDF