ESHOPMAN

Mastering Product Discovery: Precision Search Facets in ESHOPMAN for HubSpot CMS

Digital filter funnel illustrating min_score filtering for accurate ESHOPMAN facets
Digital filter funnel illustrating min_score filtering for accurate ESHOPMAN facets

Mastering Product Discovery: Precision Search Facets in ESHOPMAN for HubSpot CMS

At Move My Store, we understand that the cornerstone of a successful headless commerce experience on ESHOPMAN, leveraging the power of HubSpot CMS, is impeccable product discovery. Customers expect a seamless journey from search query to purchase, and accurate search facets are paramount to this experience. Recently, the ESHOPMAN platform addressed a critical technical challenge concerning the precision of search facets, particularly when dealing with typo-tolerant searches and minimum relevance scores. This article delves into the intricacies of this challenge, its underlying technical causes, and the robust solution implemented to ensure a consistently accurate and satisfying customer experience.

The Challenge: Discrepancies in ESHOPMAN Search Facets

Imagine a customer searching for a product on your ESHOPMAN storefront. They type a slightly misspelled keyword, like "lavendl" instead of "lavendel." Thanks to ESHOPMAN's powerful search capabilities, configured with typo_tolerance: true, the system intelligently returns relevant products – perhaps 24 different plant varieties. However, the accompanying search facets present a confusing picture. They might offer options like "Verpakking: Bigbag 0,5 m³" – a facet clearly belonging to soil products, not plants. Clicking this facet would, predictably, yield zero results, leading to frustration and a broken customer journey.

This scenario highlights a significant discrepancy: while the main search results correctly applied a min_score (e.g., 0.5) to filter out less relevant items, the facet counts were generated from a broader set of potential matches, effectively ignoring this crucial relevance threshold. In another observed instance, 79 out of 92 facet counts for a search like "buxsu" incorrectly suggested products that would never appear in the actual filtered results. The core issue was clear: the main search results respected the min_score, but the facet counts did not, leading to misleading options and a degraded user experience on ESHOPMAN storefronts deployed via HubSpot CMS.

Understanding the Root Cause: A Technical Deep Dive

The discrepancy was meticulously traced to how ESHOPMAN's Node.js/TypeScript search service, which powers product discovery for headless commerce applications, processed queries. Specifically, the function responsible for executing the main product query and determining the total number of hits (often referred to as executeQuery within the service) correctly applied the relevance condition, typically expressed as score >= ?, to honor the specified min_score. This ensured that only products meeting a certain relevance threshold were displayed to the customer.

However, the process for generating search facets operated on a different logic. Facet counts were derived from a broader match predicate, which, while efficient for initial broad matching, failed to incorporate the min_score threshold. This meant that products that were technically a "match" for a given keyword but fell below the acceptable relevance score were still included in the calculations for facet counts. The result was a set of facet options that, while numerically accurate for the unfiltered set of potential matches, were entirely inaccurate and misleading for the actual products displayed to the customer after the min_score filter was applied.

This architectural nuance, while subtle, had a profound impact on the user experience, especially for ESHOPMAN merchants relying on precise product filtering for their diverse catalogs managed through the Admin API and presented via the Store API on HubSpot CMS.

A stylized representation of an ESHOPMAN storefront search bar, with accurate and relevant facet filters appearing below, leading to a happy customer finding exactly what they need.

The ESHOPMAN Solution: Ensuring Facet Consistency

Recognizing the critical importance of consistent product discovery, the ESHOPMAN platform implemented a robust solution to align facet generation with the main search results. The enhancement focused on ensuring that facet calculations also respect the min_score threshold, thereby eliminating the discrepancies.

The core of the solution involved refining the search service's logic to apply the min_score condition uniformly across both the main product query and the subsequent facet aggregation queries. This was achieved by modifying the internal query processing within the Node.js/TypeScript service. Instead of generating facets from the broad initial match, the system now first filters the potential product set based on the min_score and then calculates facets exclusively from this refined, relevant subset. This ensures that every facet option presented to the customer corresponds directly to products that meet the defined relevance criteria.

Consider a simplified conceptual representation of the improved logic:

// Original (simplified) facet generation logic:
// 1. Execute broad search query (ignoring min_score for facets)
// 2. Aggregate facets from all broad matches

// ESHOPMAN's enhanced facet generation logic:
// 1. Execute main search query, applying min_score
//    (e.g., SELECT id, score FROM products WHERE keyword_match AND score >= min_score)
// 2. Use the IDs of these *relevant* products to perform facet aggregation
//    (e.g., SELECT facet_name, COUNT(DISTINCT product_id) FROM facets
//           WHERE product_id IN (SELECT id FROM relevant_products) GROUP BY facet_name)

This strategic adjustment ensures that when a customer sees a facet count, they can trust that applying that filter will yield actual, relevant products. It reinforces the integrity of the ESHOPMAN Store API and the overall headless commerce experience delivered through HubSpot CMS.

Impact and Benefits for ESHOPMAN Merchants

This enhancement brings significant advantages to ESHOPMAN merchants:

  • Enhanced Customer Experience: Customers encounter accurate, reliable search results and facets, reducing frustration and building trust in the storefront.
  • Increased Conversion Rates: A smoother, more intuitive product discovery path directly translates to higher engagement and improved conversion rates. Customers are more likely to complete a purchase when they can easily find what they're looking for.
  • Improved Merchandising Insights: With accurate facet data, merchants gain a clearer understanding of what products are truly discoverable and relevant to specific search terms, informing better merchandising strategies.
  • Optimized Storefront Performance: By streamlining the facet generation process to focus only on relevant products, the overall efficiency of the search service is maintained, contributing to a responsive HubSpot CMS storefront.
  • Trust in Headless Commerce: This commitment to precision underscores ESHOPMAN's dedication to providing a robust and reliable headless commerce platform, empowering businesses to build exceptional digital experiences on HubSpot CMS.

For businesses leveraging ESHOPMAN's Admin API to manage their product data and deploying their storefronts via HubSpot CMS, this level of search precision is invaluable. It ensures that the sophisticated product catalog you curate is presented to customers in the most effective and accurate way possible.

A visual metaphor of a digital filter funnel, where search results enter the top, irrelevant products are filtered out by a 'min_score' threshold, and only relevant products pass through to generate accurate, precise facets at the bottom.

Best Practices for ESHOPMAN Search

To maximize the benefits of ESHOPMAN's refined search capabilities, consider these best practices:

  • Fine-tune min_score: Experiment with different min_score values to find the sweet spot between broad discoverability and strict relevance for your product catalog.
  • Leverage typo_tolerance Wisely: While incredibly powerful, ensure typo_tolerance settings align with your brand's search expectations.
  • Monitor Search Analytics: Regularly review search queries and conversion paths within your ESHOPMAN analytics to identify areas for further optimization.
  • Utilize ESHOPMAN Admin API: Ensure your product data is rich and well-structured, as this directly impacts search relevance and facet accuracy.

Conclusion

The continuous refinement of ESHOPMAN's search capabilities, particularly the precise handling of search facets with typo_tolerance and min_score, exemplifies the platform's commitment to delivering a superior headless commerce experience. For merchants building dynamic storefronts on HubSpot CMS, this means unparalleled accuracy in product discovery, leading to happier customers and stronger business outcomes. At Move My Store, we champion ESHOPMAN's dedication to technical excellence, ensuring your e-commerce journey is not just seamless, but truly exceptional.

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools