From f85c510ed49be031145f6b35e815ce890cd4f9aa Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 2 Jun 2022 08:41:08 +0200 Subject: New search engine (#4378) * New possibility to invoke user queries from a search expression From the search field: `S:"My query"`. Can be combined with other filters such as `S:"My query" date:P3d` as long as the user queries do not contain `OR`. A use-case is to have an RSS filter with a stable address or an external API call with the ability to update the user query. * Draft of parenthesis logic * More draft * Working parenthesis (a OR b) (c OR d) * Working (A) OR (B) * Support nested parentheses + unit tests + documentation * search:MySearch and S:3 --- app/layout/nav_menu.phtml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'app/layout/nav_menu.phtml') diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 3fd6f9e0e..ee15cfe61 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -39,14 +39,16 @@ - queries as $raw_query) { - $query = new FreshRSS_UserQuery($raw_query); - ?> -
  • - getName() ?> -
  • - + queries as $raw_query): ?> +
  • + + + + + getName() ?> + +
  • + queries) > 0) { ?>
  • -- cgit v1.2.3