From d1b31b1a61e30e7b20afa644bdf5f641653b4569 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 1 Jun 2014 15:23:30 +0200 Subject: Search order of filters For now, process them in the same order as specified by the user Specifying for instance `date:` first will be much faster than specifying a free text word first. https://github.com/marienfressinaud/FreshRSS/issues/511 --- app/Models/EntryDAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/EntryDAO.php') diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 0d8c2ae13..4e24541dc 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -482,7 +482,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo { $filter = trim($filter); $filter = addcslashes($filter, '\\%_'); $terms = array_unique(explode(' ', $filter)); - sort($terms); //Put #tags first + //sort($terms); //Put #tags first //TODO: Put the cheapest filters first foreach ($terms as $word) { $word = trim($word); if (stripos($word, 'intitle:') === 0) { -- cgit v1.2.3