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

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


Commits:
9d414277 by Victor Emanouilov at 2025-10-13T13:22:41+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
=====================================
@@ -1390,6 +1390,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/9d414277db1f362917539e5c6c65c1432f99729f

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