Loading...
 
Skip to main content

Manticore Search, There is an error displayed when using a multivalue filter working fine using ElasticSearch

Status
Closed
Subject
Manticore Search, There is an error displayed when using a multivalue filter working fine using ElasticSearch
Version
26.x
Category
  • Error
Feature
Search
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

On a Tiki 26 I have a plugin List that displays results using a smarty template where I have another wikiplugin list embedded.
This plugin has a filter to match a date with a fields that have a list of dates (2023-07-23, 2023-07-24, ...) using "multivalue".

With ElasticSearch (the originaly used search engine) the results are displayed, no error.

With MySQL full-text Search (used to test only) the results are displayed, no error.

Image

With Manticore Search the results are displayed after a long error that start with:
"Fatal error rendering template file /home/tsaharoniki26/public_html/themes/templates/holidays_camps_childrenList_inner_days.tpl
TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /home/tsaharoniki26/public_html/lib/core/Search/MySql/FieldQueryBuilder.php:24
Stack trace:"


Image

I tried to point a finger on something and change/simplify the plugins that displays such results.
In the last wikiplugin list I this filter.
`{filter field="tracker_field_productsboughtHolidays_text" multivalue="{/literal}{$row.tracker_field_holidaycampsDayDay}{literal}"}`

It's the only "multivalue" filter I have for this page.
If I change "multivalue" for "content" or "exact" no error is displayed.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8471
Created
Sunday 23 July, 2023 12:47:23 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 14 September, 2023 09:31:49 UTC


Show PHP error messages