ERPClimb logoERPClimb
Solr search and indexing
SAP Commerce Cloudintermediate 5 min read

Solr search and indexing — SAP Guided Tutorial

Free sample lesson · open to everyone

Key takeaway

How product search works in SAP Commerce: Solr facet search configuration, indexed types and properties, full and update indexing jobs, facets and sorting, relevance tuning with search profiles, and diagnosing stale results.

In this lessonShow sections

Visual overview

Solr search and indexing — learning sheetFlow: Facet search config → Indexed properties → Full / update index jobs → Search + facets + boosts. Key ideas: CONFIGURATION; INDEXING; RELEVANCE; TROUBLESHOOTING. Watch out: If indexing jobs fail or lag, customers see old prices, stock or missing products while the database is correct.ERPClimb.com / COMMERCE / LESSON 9/12 / LEARNING SHEETSolr search and indexing1 · HOW IT FLOWS1Facet searchconfig2Indexedproperties3Full / updateindex jobs4Search + facets+ boosts2 · KEY IDEAS EXPLAINEDConfigurationIndexed type (Product) with properties like name,description, price, category, classificationattributes.Facet properties for filters (brand, size, pricerange).IndexingFull index: complete rebuild, typically nightly orafter big changes.Update index: changed items, more frequent.RelevanceBoost rules and search profiles adjust ranking bycategory, attribute or campaign.Synonyms and stop words per language.TroubleshootingProduct missing: check approval status, catalogversion Online, indexing job, stock rules.Wrong price in listing: check value provider andindex age.3 · REMEMBER · WATCH OUTRememberSolr indexes product data so search and category pages are fast.The facet search configuration defines indexed types, properties,facets and sorting.Full indexing rebuilds the index; update indexing processes changeditems — both usually run as cron jobs.!Watch outIf indexing jobs fail or lag,customers see old prices, stock ormissing products while the databaseis correct.4 · IN A REAL PROJECTAfter a price update, category pages still showed old prices because the update index job had failed for twodays. An alert on failed indexing jobs and on index age prevented a repeat during the next campaign.Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

After a price update, category pages still showed old prices because the update index job had failed for two days. An alert on failed indexing jobs and on index age prevented a repeat during the next campaign.

Explanation

Customers mostly find products through search and category listing pages, and in SAP Commerce both are powered by Solr rather than querying the transactional database directly — which is what makes them fast, but also introduces a layer that can get out of sync with what's actually in the database.

The facet search configuration defines what gets indexed: the indexed type (almost always Product), which properties go into the index (name, description, price, category, classification attributes), which of those properties become customer-facing facets (brand, size, price range), and how results are sorted. Properties that need computation rather than a direct copy — like price, which varies by currency — use value providers to calculate the indexed value.

Indexing itself runs as one of two jobs, almost always scheduled as cron jobs: a full index, which rebuilds the entire index from scratch (typically run nightly or after major catalog changes), and an update index, which processes only changed items and runs much more frequently so day-to-day edits show up reasonably quickly.

Because customers see search results from the index, not the live database, a change to a product's price, stock or approval status isn't visible to search until the relevant indexing job has actually run — which means monitoring these jobs (did they run, did they succeed, how long did they take) is directly tied to whether customers see correct information, not just a background operations concern.

Relevance — what shows up first for a given query — is tunable without a developer through boost rules and search profiles (sometimes called adaptive search), which let business users adjust ranking by category, attribute or for a specific campaign, and through synonyms and stop words tuned per language based on what customers are actually typing in search logs.

Troubleshooting follows a predictable pattern: if a product is missing from search or listings, check its approval status, whether it's in the Online catalog version, whether the indexing job has run since the relevant change, and any stock-based visibility rules; if a listed price looks wrong, suspect the value provider or simply an index that hasn't refreshed yet; if search itself is slow, look at the number of facets being computed and the complexity of the underlying query, since facet-heavy configurations do have a real performance cost.

Watch out

Common mistakes

Not monitoring indexing jobs: a full or update index job that silently fails for days leaves the storefront showing stale prices, stock or even products that have since been removed, all while the database itself is completely correct — this disconnect is confusing for support teams who check the database, find it fine, and conclude the bug report must be wrong.

Configuring too many facets, or facets on high-cardinality properties, which adds real computation cost to every search request and shows up as slow search pages.

Expecting a database change to be visible in search instantly: there is always a gap between when data changes and when the next relevant indexing job runs, and not accounting for that gap in launch timing causes avoidable confusion.

Not maintaining synonyms for the terms customers actually use (brand misspellings, colloquial product names), which quietly suppresses relevant results without any error ever appearing.

Do this

Best practices

Monitor indexing job success, duration and index age as a standing operational metric, not just something checked when a complaint comes in — a failed or significantly delayed index job should alert someone the same way a failed cron job for order export would.

Tune relevance using actual search log data (what customers type, what they click, what returns zero results) rather than guessing, and let business users own boost rules and search profiles for campaign-specific tuning so developers aren't a bottleneck for every ranking change.

Keep facet configuration lean and tied to properties customers genuinely filter by, reviewing periodically whether a facet that was added for one campaign is still earning its performance cost.

In the interview

Interview angle

A typical troubleshooting question is 'A product was updated an hour ago but still shows the old price on the category page — what do you check?' A weak answer assumes a bug in the price calculation.

A strong answer recognizes the category page is reading from the Solr index, not the live database, and checks three things in order: whether the update indexing job has actually run since the price change, whether that job succeeded, and whether the value provider computing the indexed price is correct — because in the overwhelming majority of cases like this, the database is already right and the index simply hasn't caught up or failed silently.

Being able to immediately separate 'database problem' from 'index problem' is the core skill this question is testing for.

Practice this lesson

Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.

Quick check

0 of 4 questions attempted

Question 1 of 4

A price changed in the database but listings show the old price. What should you check first?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1How does search work in SAP Commerce and how do you keep it reliable?

2A product is not found in search. How do you troubleshoot?

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.