Details
-
Bug
-
Resolution: Fixed
-
High
-
5.2, 5.3.1
-
None
Description
Applying a Field sortClause to a query will filter the search results to contents of that type.
The expected result would be that sort clauses would only sort results
Steps to reproduce:
Verify that the following command snippet, that searches content belonging to section 1 ("Standard") only returns contents of type "folder"
// query criterion $query->criterion = new Criterion\SectionId( array( 1 ) ); // apply sort clauses $query->sortClauses = array( new SortClause\Field( 'folder', 'title', SearchQuery::SORT_ASC, 'eng-GB' ) ); // find content $result = $searchService->findContent( $query ); foreach ( $result->searchHits as $searchHit ) $output->writeln( '* ' . $searchHit->valueObject->contentInfo->name );