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 "SimpleFacetParameters" by ryan
Date Thu, 14 Oct 2010 21:30:55 GMT
Dear Wiki user,

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

The "SimpleFacetParameters" page has been changed by ryan.
http://wiki.apache.org/solr/SimpleFacetParameters?action=diff&rev1=49&rev2=50

--------------------------------------------------

  
  All the docs counted by facet.missing can be retrieved using a query filter: `fq=-facetField:[*
TO *]`
  
+ 
+ == Pivot (ie Decision Tree) Faceting ==
+ <!> [[Solr4.0]]
+ 
+ `http://localhost:8983/solr/select?q=*:*&facet.pivot=cat,popularity,inStock&facet.pivot=popularity,cat&facet=true&facet.field=cat&facet.limit=5&rows=0&wt=json&indent=true&facet.pivot.mincount=0`
+ {{{
+ "facet_pivot":{
+       "cat,popularity,inStock":[{
+           "field":"cat",
+           "value":"electronics",
+           "count":14,
+           "pivot":[{
+               "field":"popularity",
+               "value":"6",
+               "count":5,
+               "pivot":[{
+                   "field":"inStock",
+                   "value":"true",
+                   "count":5}]},
+             {
+               "field":"popularity",
+               "value":"7",
+               "count":4,
+               "pivot":[{
+                   "field":"inStock",
+                   "value":"false",
+                   "count":2},
+                 {
+                   "field":"inStock",
+                   "value":"true",
+                   "count":2}]},
+             {
+ ...
+ }}}
+ 
+ 
  = Warming =
  
  facet.field queries using the term enumeration method can avoid the evaluation of some terms
for greater efficiency.

Mime
View raw message