Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@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.
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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.