We could do that by going down one level in our inventory, but then we
have other problems.. for example:
Right now a document looks like this:
<doc>
<!-- style level -->
<productID>1598548</productID>
<styleID>12545</styleID>
<brand>Adidas</brand>
<size>1, 2, 3, 4, 5, 6, 7</size>
<width>AA, A, B, W, W, WWWW</width>
<color>Brown</color>
</doc>
If we went down a level, it could look like..
<doc>
<!-- stock level -->
<productID>1598548</productID>
<styleID>12545</styleID>
<stockID>654641654684</stockID>
<brand>Adidas</brand>
<size>1</size>
<width>AA</width>
<color>Brown</color>
</doc>
The question now is this:
- At the stock level, we don't want a search for "brown shoes" to
return with alllll the various size/width combos as separate results -
each productId / styleId combo should be a single result
- At the stock level, if you filter by "Size: 7" and then "Width: B"
you're assured to only get things that are width B and size 7
- At the style level, we can't tell for sure which size / width combos
are in stock, since this data is not exposed to solr
This seems like a problem that isn't unique to us. Any store that has
size/width or anything like that will have the same issue. How might
it be solved?
Thanks for your time!
Matthew Runo
Software Engineer, Zappos.com
mr...@zappos.com - 702-943-7833
On Apr 3, 2009, at 1:13 AM, Fergus McMenemie wrote:
I have a design question for all of those who might be willing to
provide an
answer.
We are looking for a way to do a type of additive filters. Our
documents
are comprised of a single item of a specified color. We will use
shoes as
an example. Each document contains a multivalued ³size² field with
all
sizes and a multivalued ³width² field for all widths available for
a given
color. Our issue is that the values are not linked to each other.
This
issue can be seen when a user chooses a size (e.g. 7) and we filter
the
options down to only size 7. When the width facet is displayed it
will have
all widths available for all documents that match on size 7 even
though most
don¹t come in a wide width. We are looking for strategies to
filter facets
based on other facets in separate queries.
--
Jeff Newburn
Software Engineer, Zappos.com
jnewb...@zappos.com - 702-943-7562
Ditto!
As best I understand, you somehow need to arrange for each different
combination of colour, size and width to be indexed as a separate sol
document.
--
===============================================================
Fergus McMenemie Email:fer...@twig.me.uk
Techmore Ltd Phone:(UK) 07721 376021
Unix/Mac/Intranets Analyst Programmer
===============================================================