Search API support

Created on 22 September 2016, almost 8 years ago
Updated 1 November 2023, 8 months ago

Problem/Motivation

I would like Matomo to also support the Search API.

Proposed resolution

Add additional configuration to select Search API and the paths that are used for search.

Remaining tasks

  • Tests
  • Review
  • RTBC

User interface changes

Additional support for Search API in the Search vertical tab in the module config form.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Downport

Version

1.19

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand Gold 20 minutes in the future

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Thanks Amagan, The patch seems to work. It did not apply at first. I had to reroll.

  • πŸ‡©πŸ‡ͺGermany TimoSTR

    Hey - I was trying the patch. But no data has been sent to Matomo. Any idea if we need a certain serach api version?

    Cheers

  • We recently updated to PHP8.2 and to my surprise our site went down because of small error in this patch.

    The error:
    TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given in str_replace() (regel 494 van /web/modules/contrib/matomo/matomo.module)

    Which is where the get parameter 'search'. I've fixed it with a simple nullesce operator to return an array if null.

Production build 0.69.0 2024