intershop-pwa
intershop-pwa copied to clipboard
feat: configurable instant search
PR Type
[ ] Bugfix [x ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no API changes) [ ] Build-related changes [ ] CI-related changes [ ] Documentation content changes [ ] Application / infrastructure changes [ ] Other:
What Is the Current Behavior?
The search function is closely linked to the solr search service in the icm backend.
What Is the New Behavior?
A generic architecture for "instant search" is integrated into this project. «Instant search» feature can be show there : www.ekosport.de (click on suche, then type «snow»). You will see a layer that "fixes" the site and adds a drop-down panel, with results appearing "as you type".
The search provider is linked using an extension.
//src/app/extensions/solr-instantsearch/exports/solr-instantsearch-exports.module.ts
{
provide: INSTANTSEARCH_COMPONENT_PROVIDER,
useClass: SolrInstantSearchContentProvider,
multi: true,
},
An extension to return to the previous search behavior is included.
This way, it is easier to integrate external search providers like sparque or algolia
Does this PR Introduce a Breaking Change?
[ x] Yes [ ] No