Completed
Pull Request — 2.1 (#1178)
by Greg
09:38
created
src/SWP/Bundle/ElasticSearchBundle/Repository/ArticleRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,9 +208,9 @@
 block discarded – undo
208 208
         if (!empty($criteria->getOrder()->getField())) {
209 209
             $sortFields = [
210 210
                 $criteria->getOrder()->getField() => [
211
-                  'order' => $criteria->getOrder()->getDirection(),
212
-                  //default for elastic is to put null values at the end
213
-                  'missing' => '_last'
211
+                    'order' => $criteria->getOrder()->getDirection(),
212
+                    //default for elastic is to put null values at the end
213
+                    'missing' => '_last'
214 214
                 ],
215 215
                 '_score' => 'desc',
216 216
             ];
Please login to merge, or discard this patch.