Comments (7)
Hey @Ln11211 i will be specifying more every pr on this repo but will do probably do it on Sunday! I will ping you here once it is done :)
from gatsby-plugin-meilisearch.
Hey! For the explaination here we go :)
To configurate the plugin you provide config in gatsby-config.js
Example:
gatsby-plugin-meilisearch/playground/gatsby-config.js
Lines 42 to 67 in b47111a
In these options we do not provide the possibility to pass settings
.
By providing the settings
option to a query object it gives the possibility to the user to add MeiliSearch Settings to the index.
Example:
options: {
host: 'http://localhost:7700',
apiKey: 'masterKey',
queries: {
indexUid: 'my_blog',
settings: { // here
filterableAttributes: ["tags"],
searchableAttributes: ["title", "body"]
},
transformer: data => data.allMdx.edges.map(({ node }) => node),
query: `
...
`,
},
},
Adding settings should be done before adding documents as best practice.
Thus in the code it would add an additional step before adding documents:
const index = client.index(queries.indexUid)
// Add settings to Index
const { updateId } = await index.addSettings(queries.settings)
// wait for settings to be processed
// Index data to Index
const { updateId } = await index.addDocuments(transformedData)
from gatsby-plugin-meilisearch.
@bidoubiwa , I am unable to understand the assignment and I apologize for wasting your time.
from gatsby-plugin-meilisearch.
@mdubus, hello, what exactly should we be doing ?
from gatsby-plugin-meilisearch.
@bidoubiwa ok ?
from gatsby-plugin-meilisearch.
Kindly assign a good first issue.
from gatsby-plugin-meilisearch.
Commenting to keep myself updated on the issue.
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
- Add the `skipIndexing` option HOT 3
- Prepare the plugin for publish on NPM & gatsby
- Remove support for node 12 and ensure support for node 18 HOT 1
- 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.