[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <68ecd2ee89fbe_2c963444854c5@gitlab-sidekiq-low-urgency-cpu-bound-v2-fb867db47-nw8jm.mail>

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


Commits:
81d2c26a by Victor Emanouilov at 2025-10-13T13:22:32+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
=====================================
@@ -1406,6 +1406,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/81d2c26a4ef8b0c19c78eddcccf8f9130bba5402

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/81d2c26a4ef8b0c19c78eddcccf8f9130bba5402
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.