Loading...
 
Skip to main content

Filtering a Multivalue does not work with MySQL search

Status
Closed
Subject
Filtering a Multivalue does not work with MySQL search
Version
22.x
Category
  • Consistency
  • Feature request
Feature
Search
Trackers
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

Search (index) need sometimes to "Explode" a itemList field values as an array of string so each value can be filtered

For an exemple, in a tracker you have an itemList fields using this date field with such values:

  • tracker_field_date: 2021-03-24, 2021-01-14, 2020-10-22


To filter per date (we need item that contain "2021-03-24" only) we can should be able to use multivalue.

filter set in a smarty template, work the same elsewhere
Copy to clipboard
{filter field="tracker_field_date" multivalue="{/literal}{$row.tracker_field_holidayDay}{literal}"}


Note: if you use content you may filter "2021-03-24 and 2021-01-14 because they both contain "2021"

This is working fine if you use elasticSearch but doesn’t when you use Mysql.

Importance
7
Easy to solve?
5
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7719
Created
Sunday 04 April, 2021 06:59:51 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 07 December, 2022 11:48:47 UTC


Show PHP error messages