Code Monkey home page Code Monkey logo

Comments (3)

bidoubiwa avatar bidoubiwa commented on June 9, 2024 1

When a user is developing his gatsby website they maybe do not want MeiliSearch plugin to re-index on every rebuild. We should add a skipIndexing option in the settings

    options: {
        host: 'http://localhost:7700',
        apiKey: 'masterKey',
        skipIndexing: true, // HERE
        queries: {
          ...
        },
      },

When this option is activated, the plugin should not fetch and index data.

exports.onPostBuild = async function ({ graphql, reporter }, config) {
  const activity = reporter.activityTimer(PLUGIN_NAME)
  activity.start()
  try {
    const { queries, host, apiKey = '', skipIndexing } = config
    if (skipIndexing) {
      // quit
    }
....

from gatsby-plugin-meilisearch.

bidoubiwa avatar bidoubiwa commented on June 9, 2024 1

Hey @Bhavin789 thanks so much for the interest given in this repo. You can absolutely take a shot!

We prefer not assigning people to our issues because sometimes people ask to be assigned and never come back, which discourages the real volunteers contributors to open a PR to fix this issue.
We will accept and merge the first PR that fixes correctly and well implements the issue following our contributing guidelines.

from gatsby-plugin-meilisearch.

Bhavin789 avatar Bhavin789 commented on June 9, 2024

Hi @bidoubiwa, this seems straightforward to me as per your solution above. If it's ok, may I give it a try? Thanks!

from gatsby-plugin-meilisearch.

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.