From 14fe95963614c8124fbbbac70d33705c8eb6a212 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 11 Apr 2024 05:46:42 +0200 Subject: [PATCH] Experimental ?wiki and ?description search The idea is to test it in the release mode on real devices Signed-off-by: Alexander Borsuk --- search/processor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/search/processor.cpp b/search/processor.cpp index 462eb5d535..e4076232c1 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -640,6 +640,18 @@ void Processor::Search(SearchParams params) bool Processor::SearchDebug() { + if (m_query.m_query == "?wiki") + { + EmitWithMetadata(feature::Metadata::FMD_WIKIPEDIA); + return true; + } + + if (m_query.m_query == "?description") + { + EmitWithMetadata(feature::Metadata::FMD_DESCRIPTION); + return true; + } + #ifdef DEBUG SearchByFeatureId();