lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "HierarchicalFaceting" by ChrisBeer
Date Tue, 23 Aug 2011 21:36:58 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "HierarchicalFaceting" page has been changed by ChrisBeer:
http://wiki.apache.org/solr/HierarchicalFaceting?action=diff&rev1=9&rev2=10

Comment:
moving a sentence to read better without the accompanying diagram.

  
  This is a basic approach that works well for most use cases and takes advantage of basic
Solr faceting parameters by encoding the facet terms at index time.
  
- In this example, we have document associated with multiple categories, like Doc#3. We also
have documents that are mapped to internal nodes, like Doc#2. 
  
  ==== Flattened Data “breadcrumbs” ====
  
@@ -21, +20 @@

  Doc#2: NonFic > Sci
  Doc#3: NonFic > Hist, NonFic > Sci > Phys
  }}}
+ 
+ In this example, we have documents associated with multiple categories, like Doc#3. We also
have documents that are mapped to internal nodes, like Doc#2. 
  
  You must perform some index time processing on this flattened data in order to create the
tokens needed for a facet.prefix approach. When we index the data we create specially formatted
terms that encode the depth information for each node that appears as part of the path, and
include the hierarchy separated by a common separator (“depth/first level term/second level
term/etc”). We also add additional terms for every ancestors in the original data.
  

Mime
View raw message