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] Update of "HierarchicalFaceting" by ErikHatcher
Date Sun, 19 Jul 2009 21:38:37 GMT
Dear Wiki user,

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

The following page has been changed by ErikHatcher:
http://wiki.apache.org/solr/HierarchicalFaceting

The comment on the change is:
added ruby code to generate sample hierarchical data

------------------------------------------------------------------------------
    * time to receive response: 56ms
    * response size: 63K
  
+ == hiergen.rb ==
+ {{{
+ id = 0
+ puts "id,levels_h,level1_s,level2_s"
+ ('A'..'Z').each { |level1|
+   1.upto(10000) { |level2|
+     puts "#{id},#{[level1,level2].join('/')},#{level1},#{level2}"
+     id += 1
+   }
+ }
+ }}}
+ 
  = Basic hierarchical facet use cases =
  == Facets across all documents for only top-level of hierarchy ==
     In general, no need to leverage any tree/hierarchical faceting for this use case; index
the first level as a separate facet field and use current Solr faceting capabilities for this
common case.

Mime
View raw message