What is the problem you are trying to solve?
Review Product Specifications, and easily find a required Specification from the Specifications List.
Context
Product specifications are not currently searchable in the Product Details view: when entering a search term and clicking the search icon / pressing enter - the results are not filtered.
Steps to reproduce:
-
Define Commerce Specifications in Liferay (enough to test search functionality)
-
Create a Commerce Product
-
Create Specifications for Product (
+→Add an Existing Specification) -
Enter a search term to find matching Product Specifications
-
Click Search Icon or press Enter button
Expected behavior: Product Specifications list is filtered to match the entered search term
Actual behavior: Page is refreshed, but Product Specifications list is not filtered
Liferay support feedback
Our engineering team has reviewed the case and confirmed that, in this specific view, the search bar is generated by the standard frontend component.
However, search functionality is not currently supported for this view, which explains the behavior you’re experiencing.
What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)
Liferay Commerce (B2B/B2C) project with a huge amount of products and specifications per product, coming from external PIM system.
From Liferay Support ticket:
Search functionality is important for us, as missing search will slow down the investigation / troubleshooting process related to product data, especially after moving to Production (both for us and for customer).
We’re going to have ~50,000 products, and each product will have around 300-500 specifications associated. Currently to find a required product specification we have to iterate over 30 pagination pages and use browser search.
Also, we have quite complex product data flow:
PIM → Custom Integration Platform → Liferay Batch API → Products and Specifications → Custom Search Contributor → Elasticsearch → Custom Searcher → Custom UIIf some product data (specification value) is missing/invalid on UI - it can be potentially lost/broken at any step, but the first place to look is Product Specifications in Liferay: if specification value is correct there, but incorrect on UI - it’s Liferay team internal issue; otherwise, if specification value is incorrect - it’s external issue (PIM/Integration/etc.).
What is your proposed solution?
Fix the component to make the search function work properly.
Note: this bug is also present in other places, e.g. search for PickLists inside Specification details view (but here it’s not that critical, as usually there is only 1:1 relation).
Anyway, if Search Bar is rendered - it’s supposed to be working. If it’s not working (and is not going to be fixed) - hide Search Bar from UI, in order not to confuse users.