File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -223,11 +223,7 @@ function ($field) {
223
223
$ boostQueryFields = $ query ->getBoostQueryFields ();
224
224
225
225
// if searching text
226
- if (!$ query ->getDefinedSortOrder ()
227
- && $ query ->hasSearchTerm ()
228
- && !$ query ->getSortCollection ()
229
- && !empty ($ query ->getBoostQueryFields ())
230
- ) {
226
+ if ($ query ->hasSearchTerm ()) {
231
227
//apply boosts
232
228
$ queryFields = [];
233
229
$ boostLucenifier = new BoostLucenifier ();
@@ -241,7 +237,7 @@ function ($field) {
241
237
//if there are sorts to apply, apply them
242
238
$ sortCollection = $ query ->getSortCollection ();
243
239
244
- if ($ sortCollection instanceof SortCollectionInterface) {
240
+ if ($ sortCollection instanceof SortCollectionInterface && ! $ query -> hasSearchTerm () ) {
245
241
foreach ($ sortCollection as $ sort ) {
246
242
try {
247
243
$ sortKey = $ sort ->getFilter ()->getSearchKey ();
You can’t perform that action at this time.
0 commit comments