diff --git a/_includes/header.html b/_includes/header.html index 00fe2dc..9d3dcf5 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -47,7 +47,7 @@ {% else %} {% if page.primary_image %} - + {% endif %} {% endif %} diff --git a/blog/_posts/2014-04-24-color-searching-with-elasticsearch.md b/blog/_posts/2014-04-24-color-searching-with-elasticsearch.md index 02c153c..fc97504 100644 --- a/blog/_posts/2014-04-24-color-searching-with-elasticsearch.md +++ b/blog/_posts/2014-04-24-color-searching-with-elasticsearch.md @@ -3,7 +3,7 @@ title: Color Searching with Elasticsearch layout: post tags: [ 'color', 'ecommerce', 'elasticsearch', 'hsv', 'search', 'weighted' ] description: Some mappings, strategies, and queries for advanced color searching with elasticsearch. -primary_image: http://dpb587.me/asset/blog/2014-04-24-color-searching-with-elasticsearch/search0.png +primary_image: /blog/2014-04-24-color-searching-with-elasticsearch/search0.png --- A [year ago][1] when I updated the [TLE website][2] I dropped the "search by color" functionality. Originally, all the @@ -15,7 +15,7 @@ attributes and availability. It was neat, but it was not a great user experience It took some time to get back to the search by color functionality, but I've finally been able to get back to it and, with [elasticsearch][3], significantly improve it. -Screenshot: colorized yarn +Screenshot: colorized yarn ## Color Quantification @@ -31,8 +31,8 @@ colors it also keeps track of their ratios making it easy to realize multi-color After batch processing inventory to bring colors up to date, I added hooks to ensure new images are processed for colors as they're uploaded. -Screenshot: colorized yarn -Screenshot: colorized fabric +Screenshot: colorized yarn +Screenshot: colorized fabric You can see it noticed the significant colors of the yarn and fabric above, along with their approximate ratios. With some types of items, it may be possible to infer additional meaning such as the "background color" of fabric. @@ -191,7 +191,7 @@ between the requested color and the matched color. The [`function_score`][13] qu The `_score` can then be used in sorting to show the closest color matches first. -Screenshot: search screen shot +Screenshot: search screen shot Of course, these color searches can be added alongside the other facet searches like product availability, attributes, and regular keyword searches.