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

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


Commits:
adbf2150 by Victor Emanouilov at 2025-10-13T13:22:48+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
=====================================
@@ -1376,6 +1376,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/adbf2150d47577acb3477d8bb18eb99496814e7c

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