Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@graphcommerce/algolia-products
Advanced tools
An implementation of Algolia Products through the GraphQL Mesh.
An implementation of Algolia Products 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-products@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 Products through the GraphQL Mesh.
We found that @graphcommerce/algolia-products 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.