<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Search on Jorge Luis Betancourt</title><link>https://jorgelbg.me/tags/search/</link><description>Recent content in Search on Jorge Luis Betancourt</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Jan 2020 11:46:14 -0500</lastBuildDate><atom:link href="https://jorgelbg.me/tags/search/index.xml" rel="self" type="application/rss+xml"/><item><title>Better URL search with Elasticsearch</title><link>https://jorgelbg.me/2020/01/better-url-search-with-elasticsearch/</link><pubDate>Wed, 01 Jan 2020 11:46:14 -0500</pubDate><guid>https://jorgelbg.me/2020/01/better-url-search-with-elasticsearch/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;🚀 This article was posted in the &lt;a href="https://tech.trivago.com/2020/02/11/better-url-search-with-elasticsearch/"&gt;trivago tech blog&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;At trivago, we generate a huge amount of logs and we have our &lt;a href="https://tech.trivago.com/2016/01/19/logstash_protobuf_codec/"&gt;own custom setup for shipping&#10;logs&lt;/a&gt; using mostly &lt;a href="https://developers.google.com/protocol-buffers"&gt;Protocol&#10;Buffers&lt;/a&gt;. Eventually we end up with some fields in ES&#10;that contain partial (or full) URLs. For instance in our specific case we store the &lt;a href="https://en.wikipedia.org/wiki/URL#Syntax"&gt;query&#10;component&lt;/a&gt; of the URL in a field called &lt;code&gt;query&lt;/code&gt; and the&#10;&lt;a href="https://en.wikipedia.org/wiki/URL#Syntax"&gt;path component&lt;/a&gt; in a field named &lt;code&gt;url_path&lt;/code&gt;. Sample values&#10;for these fields could be:&lt;/p&gt;</description></item></channel></rss>