question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to populate all data by Meilisearch pluging using populateEntryRule in my strapi project

See original GitHub issue

Discussed in https://github.com/meilisearch/meilisearch/discussions/2747

<div type='discussions-op-text'>

Originally posted by giri943 September 6, 2022 I am trying to integrate meilisearch in my Strapi Project. While integrating and testing meilisearch I found that the plugin is failing to fetch all the data, especially when the data is located inside a deeply nested array. The plugin successfully fetches the data from the first level of nested array, rest of the datas are not being fetched by meilisearch plugin. I have tried using the populateEntryRule on plugin.js file which I found from the meilisearch documentation but still it’s not fetching all the data. When I fire an API call to that particular collection type through Strapi(not through meilisearch) am getting all the data correctly. Here is my particular schema that I am working with:

{
  "kind": "collectionType",
  "collectionName": "investors",
  "info": {
    "singularName": "investor",
    "pluralName": "investors",
    "displayName": "Investor",
    "description": ""
  },
  "options": {
    "draftAndPublish": true
  },
  "pluginOptions": {},
  "attributes": {
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "uid",
      "targetField": "title"
    },
    "metaData": {
      "type": "component",
      "repeatable": false,
      "component": "seo.meta-fields"
    },
    "pageSections": {
      "type": "dynamiczone",
      "components": [
        "sections.hero",
        "sections.certification-section",
        "sections.community-section",
        "sections.content-section",
        "sections.home-page-section-2",
        "sections.lm-business-modal-section",
        "sections.lm-evolving-section",
        "sections.lm-leardership-section",
        "sections.milestone-section",
        "sections.mission-section",
        "sections.our-business-section",
        "sections.product-hero-section",
        "sections.statistics-section",
        "sections.team-section",
        "sections.value-section",
        "sections.vision-section",
        "sections.webcast-section",
        "sections.chart-section",
        "sections.key-financials",
        "sections.fixed-deposit",
        "sections.financial-performance"
      ]
    },
    "Accordion": {
      "type": "dynamiczone",
      "components": [
        "elements.no-dropdown",
        "elements.dropdown"
      ]
    }
  }
}

I am having trouble in fetching the data from “pageSection” which has some deeply nested arrays of data. My Meilisearch populateEntryRule plugins.js file

module.exports = {
    meilisearch: {
        config: {
          investor: {
                populateEntryRule:['dynamiczone.pageSections', 'pageSections']
          }
        }
      },
}

Strapi Content type structure: StrapiContent Structure

Strapi API call to a collection api call

Meilisearch Result FrontEnd Data

I couldn’t find any related articles anywhere, that’s why I opened a discussion over here. Kindlylook into my problem and any help or suggestion will be highly appreciated.</div>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
bidoubiwacommented, Nov 15, 2022

See #580 suggesting more information on populate. Closing as it is resolved 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to populate all data by Meilisearch pluging using ...
I am trying to integrate meilisearch functionality in my Strapi Project. While integrating and testing meilisearch I found that the plugin ...
Read more >
Strapi's User Roles and Permissions for Admin Panel
They're managed with the User and Permissions Plugin and are not admins. At the same time, admin users are like owners of a...
Read more >
Integrate Meilisearch with Strapi v4
This tutorial will show you how to integrate Meilisearch with Strapi v4 to create a search-based web app.
Read more >
Strapi-plugin-meilisearch NPM | npm.io
Check Strapi-plugin-meilisearch 0.7.1 package - Last release 0.7.1 with MIT ... to an entry correctly from your Strapi database, the correct populate rule...
Read more >
Untitled
The REST API by default does not populate any relations, media fields, components, or dynamic zones. ... Access all your Strapi data using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found