[TikiWiki-commits] [Git][tikiwiki/tiki][26.x] [ENH] search index ajax lookup and query builder: allow usage of exact identifier matches

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68ecd301317cf_2ce0c7c28061@gitlab-sidekiq-low-urgency-cpu-bound-v2-fb867db47-h6drn.mail>

Victor Emanouilov pushed to branch 26.x at Tiki Wiki CMS Groupware / Tiki


Commits:
1f9bef2d by Victor Emanouilov at 2025-10-13T13:22:52+03:00
[ENH] search index ajax lookup and query builder: allow usage of exact identifier matches

- - - - -


1 changed file:

- lib/search/searchlib-unified.php


Changes:

=====================================
lib/search/searchlib-unified.php
=====================================
@@ -1325,6 +1325,14 @@ class UnifiedSearchLib
             unset($filter['not_prefix']);
         }
 
+        if (isset($filter['exact']) && is_array($filter['exact'])) {
+            foreach ($filter['exact'] as $field => $value) {
+                $query->filterIdentifier($value, $field);
+            }
+
+            unset($filter['exact']);
+        }
+
         if (
             isset($filter['distance']) && is_array($filter['distance']) &&
                     isset($filter['distance']['distance'], $filter['distance']['lat'], $filter['distance']['lon'])



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1f9bef2d5d50106b95e3f0a35fe464aa8c4ed6fe

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1f9bef2d5d50106b95e3f0a35fe464aa8c4ed6fe
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.