Skip to content

Unable to add multiple element types to the same index #65

@jamie-s-white

Description

@jamie-s-white

Hi,

I'm trying to work out how to add both entries and categories to the same TypeSense index.

However, looking at the code, I do not believe this is possible?

For example, the TypesenseCollectionIndex only accepts one elementType:

https://github.com/craftpulse/craft-typesense/blob/v5/src/TypesenseCollectionIndex.php#L44

This leads me to believe that we can only have one index with entries, and another with categories, but not an index with both, is that correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions