Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@graphcommerce/algolia-mesh
Advanced tools
An implementation of Algolia through the GraphQL Mesh.
An implementation of Algolia through the GraphQL Mesh.
Make sure the Magento 2 module is correctly installed and working.
Find current version of your @graphcommerce/next-ui
in your package.json.
yarn add @graphcommerce/algolia-mesh@9.0.0
(replace 9.0.0 with the version
of the step above)
Configure the following (configuration values) in your graphcommerce.config.js:
const config = {
algolia: {
applicationId: 'your-algolia-application-id', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Application ID
indexNamePrefix: 'default_', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix
searchOnlyApiKey: 'blabla', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Search-only (public) API key
catalogEnabled: false, // start with search and if everything works as expected, you can move on to the catalog.
},
}
Stores > configuration > Algolia Search > Products > Products
Stores > Configuration > Algolia Search > Instant Search Results Page > Facets
Stores > Products > Attributes
Stores > Configuration > Algolia Search > Instant Search Results Page > Use Virtual Replica
const config = {
algoliaCustomerGroupPricingEnabled: true,
}
To enable customer group pricing, make sure customers groups prices are mapped
to algolia.
Stores > Configuration > Algolia Search > Advanced > Enable Customer Groups
.
⚠️ Warning: Catalog price rules for a specific customer group do not seem to be
indexed.It seems only: [Product] > Advanced Pricing > Customer Group Price
gets indexed.
Note: The GraphQL API does not expose the customer group_id by default. We're doing an additional REST API call to get the value. This means a somewhat slower (few hundred ms) when the Customer is loaded.
By default algoliaFacetsToAggregations and algoliaHitToMagentoProduct can be plugged in.
Sorting is defined by Algolia and can not be configured per category as each sorting option is a separate (virtual) index.
To get query suggestions/autocomplete enter your Algolia dashboard > Search > configure > Query Suggestions > new Query Suggestions Index. This will create a new index which will be used for suggestions
Don't mind to use the suggestions setting in magento admin. It will create a suggestions index but it will not record suggestions. This requires instantSearch
FAQs
An implementation of Algolia through the GraphQL Mesh.
The npm package @graphcommerce/algolia-mesh receives a total of 1 weekly downloads. As such, @graphcommerce/algolia-mesh popularity was classified as not popular.
We found that @graphcommerce/algolia-mesh demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.