Finding similar products using LSH on structured data
<p>I am trying to build a similar product using LSH and I have following query.</p>

<p>My data has following schema</p>

<pre><code>id: long,
title: string,
description: string,
category: string,
price: double,
inventory_count: int,
active: boolean,
date_added: datetime
</code></pre>

<p><strong>Should I perform LSH on individual features separately and then combine them in some way, may be weighted average?</strong></p>

<p>or </p>

<p><strong>Should I go about building LSH on all features all together (basically attaching feature name while creating shingles like title_iphone, title_nexus, price_1200.25, active_1...) and then using bag-of-words approach perform LSH on this bag?</strong></p>

<p>If someone can direct me to a document where I can figure out how to perform LSH on structured data like of ecommerce it will be great.</p>

<p>P.S. I'm planning to use spark and min-hash function in LSH. Let me know if you need any more details.</p>