on ‎2019 Mar 27 1:21 PM
Hi,
I am trying to implement in my web shop the facet which can filter the products in a section via their first letter in product names. For example like here: A to Z - A to D (3) - E to H (1) - I to M (2) - N to S (4) - T to Z (0)
If I klick on "A -D", I should get the sorted list of products containing names beginning with letters A, B, C or D.
What ist the best way t do this?
Request clarification before answering.
Hi ,
thank you for the fast answer. You have described how to define the additional sort (Name A -Z) for all products. But I need a filter for product names.
I defined the facet "Name A -Z" with the list "A-D", "E-H", "I-M", "N-S" and "T-Z". If I click on "A-D" then I want to have only the products with name beginning by A,B,C or D. I think I have to implement own ValueProvider for solr something like productNameVlueProvider. But I am not sure, maybe hybris has a similar ValueProvider which I can use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ira,
If you are using out of the box feature. go to backoffice -> index type -> select the product index. goto Solr Sort. and create a new Solr Sort. By default the solr is configured on name. \
select index type, give code and name value as "Name ( A-Z)"
Go to fields.. select name. ascending as tru. Save. Run the solr indexing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.