Indexing multi-value string fields

Created on 4 December 2023, about 1 year ago
Updated 9 April 2024, 11 months ago

Problem/Motivation

The module currently doesn't leverage Typesense's multi-value datatypes (https://typesense.org/docs/0.21.0/api/collections.html#with-pre-defined-...). So there's no way to, for example, index a string field with multiple values, e.g. tags.

Steps to reproduce

- Create an entity type with a string field that allows multiple values
- Add that field to be indexed and created content
- Only the last string in the field gets indexed, whereas a user would want all values to be indexed.

Proposed resolution

- Create a new datatype plugin for string[] that extends the existing string plugin
- Make sure the backend plugin can manage multi value datatypes based on the plugin name.

Remaining tasks

- Review & test
- Consider adding the other multi-value datatypes

User interface changes

- New Typesense datatype(s) added in search index configuration

API changes

N/A

Data model changes

N/A

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom khaled.zaidan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024