<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Elasticsearch on Jonathan Franklin</title><link>https://jonnie.github.io/tags/elasticsearch/</link><description>Recent content in Elasticsearch on Jonathan Franklin</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Sep 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://jonnie.github.io/tags/elasticsearch/index.xml" rel="self" type="application/rss+xml"/><item><title>Elasticsearch Product Search Index</title><link>https://jonnie.github.io/work/search-index-pipeline/</link><pubDate>Sat, 11 Sep 2021 00:00:00 +0000</pubDate><guid>https://jonnie.github.io/work/search-index-pipeline/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;&#10;&lt;p&gt;Pricesearcher&amp;rsquo;s search service used separate Elasticsearch product indexes for different countries. Index builds needed to carry product identity and cross-merchant links into searchable records, while accommodating market-specific merchant rules and schedules. The team also used Google Sheets to maintain smaller datasets that needed to be searchable.&lt;/p&gt;&#10;&lt;h2 id="architecture"&gt;Architecture&lt;/h2&gt;&#10;&lt;p&gt;A Makefile-driven pipeline generated Avro source data through Athena, downloaded it from S3 and used a PyPy builder to populate Elasticsearch. It supported the site&amp;rsquo;s &lt;code&gt;nitor&lt;/code&gt; index and a separate &lt;code&gt;nested&lt;/code&gt; index type. Separate configurable builders published selected Google Sheet tabs as Elasticsearch indexes.&lt;/p&gt;</description></item><item><title>Multi-Source Product Search API</title><link>https://jonnie.github.io/work/product-search-api/</link><pubDate>Fri, 16 Jul 2021 00:00:00 +0000</pubDate><guid>https://jonnie.github.io/work/product-search-api/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;&#10;&lt;p&gt;Pricesearcher&amp;rsquo;s website, browser extension and external integrations needed product data from both the company&amp;rsquo;s Elasticsearch index and third-party providers. Combining those sources meant dealing with different response formats, provider latency and client ranking requirements. The API also needed clearer boundaries between the interfaces used by different clients.&lt;/p&gt;&#10;&lt;h2 id="architecture"&gt;Architecture&lt;/h2&gt;&#10;&lt;p&gt;The Python/Flask API combined the internal Elasticsearch index with Amazon, Yahoo and Kelkoo. Third-party requests ran asynchronously and provider failures were handled separately. Redis with RediSearch supported filtering, sorting and facets over cached results. Web, browser-extension, external-client and core APIs ran as separate deployments with their own OpenAPI specifications.&lt;/p&gt;</description></item><item><title>Affiliate Offers &amp; Vouchers Pipeline</title><link>https://jonnie.github.io/work/affiliate-offers-pipeline/</link><pubDate>Tue, 19 Jan 2021 00:00:00 +0000</pubDate><guid>https://jonnie.github.io/work/affiliate-offers-pipeline/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;&#10;&lt;p&gt;Pricesearcher&amp;rsquo;s deals content came from affiliate networks including Commission Junction and Webgains. Their authenticated feeds used different formats and conventions for promotions, dates and links. The data needed a common shape and a connection to the merchant catalogue before it could support the site&amp;rsquo;s deals search.&lt;/p&gt;&#10;&lt;h2 id="architecture"&gt;Architecture&lt;/h2&gt;&#10;&lt;p&gt;Authenticated and paginated feeds were downloaded to S3, then SQS messages triggered network-specific processing. Normalised promotions were written to an Elasticsearch index for the site&amp;rsquo;s offers and vouchers search. A separate synchronisation path maintained Kelkoo pass-through URLs between Redis and Google Sheets.&lt;/p&gt;</description></item></channel></rss>