Problem
Search needed country-specific Elasticsearch indexes with enough identity data to connect offers across merchants and resolve products. Pricesearcher was expanding markets while also needing a lightweight way to publish smaller, sheet-maintained datasets.
Constraints
Merchant inclusion rules and schedules differed by market. Index rebuilds used cluster resources, so rebuild frequency competed with freshness. Products without cross-merchant links still had to be represented correctly; Google Sheets data needed mapping and validation before it could enter search.
Solution
A Makefile-driven pipeline generated Avro via Athena, downloaded it from S3 and used a PyPy builder to populate nitor and nested Elasticsearch indexes. Configurable builders mapped selected Google Sheet tabs to separate indexes.
My Role
I added index support, merchant rules and schedules for Romania, Slovakia, Greece and Hungary. I built a linked-product mapping table and joined link counts into records, including unlinked products; added deeplink tokens, MPNs, SKUs and source-table identifiers; and worked on Google Sheets document mapping, validation and reindexing.
Technologies
Python/PyPy, Elasticsearch, AWS (Athena, S3), Avro, Google Sheets, Docker, Terraform.
Engineering Challenges
- Sparse identity data: A join that drops unlinked products would quietly remove legitimate search records. I included products with no links while enriching those that had cross-merchant mappings.
- Freshness versus infrastructure cost: Cluster sizing, JVM heap and the GB rebuild schedule were adjusted to limit resources, explicitly accepting a tradeoff in how current the index could be.
- Different source sizes need different paths: Small sheet-maintained datasets used configurable mapping and validation rather than forcing each through the full product-feed pipeline.
Outcome
Four additional markets used the shared indexing flow. Search records carried more identifiers and link data, and sheet-maintained datasets had a publishing route; no relevance or indexing-throughput metric is asserted.