Giter Club home page Giter Club logo

Comments (4)

brunoocasali avatar brunoocasali commented on June 2, 2024

Hi @crespire!

What is the configuration of your model? Because you're creating an index called Resource and the error shows a different name, PressRelease.

You can tweak the name of the index if you want (just take a look at the readme) :)

from meilisearch-rails.

crespire avatar crespire commented on June 2, 2024

Sorry, I forgot to edit the error message. The model name is PressRelease but changed to Resource in sample code. That being said, I believe this particular issue was a file system persistence issue.

I'm still interested to hear about solutions for an initial index population in Rails, as that is the core problem I'm trying to solve.

from meilisearch-rails.

brunoocasali avatar brunoocasali commented on June 2, 2024

Ok, so first, I think you don't need the two client calls you did in the first place meilisearch-rails automatically creates the index for you.

Plus, I'm thinking about the after_initialize you opted for. You're probably loading the index somewhere else before triggering your reindex.

from meilisearch-rails.

crespire avatar crespire commented on June 2, 2024

Hmm, I will investigate. We've pursued the solution of running an after-deploy rake task to reindex as part of our deployment process, so I'll close the issue now.

Thanks @brunoocasali, appreciate your time and assistance!

from meilisearch-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.