|  | @@ 155-157 (lines=3) @@ | 
                                                            
                                    | 152 |  |             $search->addQuery(new TermsQuery($field, is_array($value) ? $value : [$value]), 'must'); | 
                                                            
                                    | 153 |  |         } | 
                                                            
                                    | 154 |  |  | 
                                                            
                                    | 155 |  |         foreach ($orderBy as $field => $direction) { | 
                                                            
                                    | 156 |  |             $search->addSort(new Sort($field, strcasecmp($direction, 'asc') == 0 ? Sort::ORDER_ASC : Sort::ORDER_DESC)); | 
                                                            
                                    | 157 |  |         } | 
                                                            
                                    | 158 |  |  | 
                                                            
                                    | 159 |  |         return $this->execute($search, $resultType); | 
                                                            
                                    | 160 |  |     } | 
                                                                                
                                |  | @@ 180-182 (lines=3) @@ | 
                                                            
                                    | 177 |  |             $search->addQuery(new TermsQuery($field, is_array($value) ? $value : [$value]), 'must'); | 
                                                            
                                    | 178 |  |         } | 
                                                            
                                    | 179 |  |  | 
                                                            
                                    | 180 |  |         foreach ($orderBy as $field => $direction) { | 
                                                            
                                    | 181 |  |             $search->addSort(new Sort($field, strcasecmp($direction, 'asc') == 0 ? Sort::ORDER_ASC : Sort::ORDER_DESC)); | 
                                                            
                                    | 182 |  |         } | 
                                                            
                                    | 183 |  |  | 
                                                            
                                    | 184 |  |         $result = $this | 
                                                            
                                    | 185 |  |             ->getManager() |