Details
-
Bug
-
Resolution: Invalid
-
High
-
5.4.0, 5.3.4
Description
If you search using the API with the code below, the results will be wrong with missing content objects.
That will happen if the content attribute has an empty sort_key_string.
// category_l2 is the class name // categories_l3 is a text line attribute name $criterion = new CriterionLogicalAnd( array( new CriterionSubtree( $this->locationService->loadLocation( 68 )->pathString ), new CriterionContentTypeIdentifier( 'category_l2' ), new CriterionField( 'categories_l3', CriterionOperator::CONTAINS, 'TEXT TO SEARCH' ) ) ); $query->criterion = $criterion; $content = $this->searchService->findSingle( $query->criterion );
Note: a similar issue exists on EZP-22308
Attachments
Issue Links
- relates to
-
EZP-23924 Empty sort_key_string should be fixed to prevent failures
- Closed