intershop-pwa icon indicating copy to clipboard operation
intershop-pwa copied to clipboard

feat: configurable instant search

Open tbouliere-datasolution opened this issue 11 months ago • 0 comments

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.

Legacy

This way, it is easier to integrate external search providers like sparque or algolia

Does this PR Introduce a Breaking Change?

[ x] Yes [ ] No

Other Information

tbouliere-datasolution avatar Mar 21 '24 16:03 tbouliere-datasolution