Comments (3)
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.
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.
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)
- Delete and re-index all if index already exists HOT 1
- Find how to make some tests without Cypress HOT 1
- Bug: Typo in Bug report issue template
- Bug: Dependency on Meilisearch API Header : x-meili-api-key not found HOT 2
- Prepare the plugin for publish on NPM & gatsby
- Remove support for node 12 and ensure support for node 18 HOT 1
- Use MeiliSearch settings HOT 7
- Cannot read properties of undefined (reading 'length') HOT 9
- Allow multi-indexing HOT 1
- Test job ran in CI is stuck on waiting for the web server to run HOT 2
- Current example in the README is not much of use HOT 4
- error timeout of 5000ms has exceeded on process 3 when waiting a task to be resolved. HOT 10
- Should the plugin become compatible with Gatsby v5 ? HOT 3
- Change naming of queries until multi indexes is working HOT 2
- Allow multi queries on same index HOT 1
- Add jsdoc comments in functions
- Add error code at the end of the error message
- Test that the documents were correctly indexed
- Make batchs for the indexation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-plugin-meilisearch.