Skip to content

No results for single types #125

Description

@s-kennedy

I'm having trouble getting results for single types. For collection types I'm getting results as expected. But for single types it comes back as an empty array even when I search the exact text of the title. I've tried adding and removing other options like characterLimit and threshold but it's not having any effect.

This is my config:

module.exports = ({ env }) => ({
  "fuzzy-search": {
    enabled: true,
    config: {
      contentTypes: [
        ...
        {
          uid: "api::donate-page.donate-page",
          modelName: "donate-page",
          fuzzysortOptions: {
            keys: [
              {
                name: "title",
                weight: 200,
              },
              {
                name: "subtitle",
                weight: -200,
              }
            ],
          },
        },
       ...
      ],
    },
  }
});

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions