lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "FieldCollapsing" by martijn
Date Sun, 29 Nov 2009 21:54:46 GMT
Dear Wiki user,

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

The "FieldCollapsing" page has been changed by martijn.
The comment on this change is: Extended config section with how to configure field collapse


  Note that we have not included "query" in the list of component; the collapse handler implements
query functionality itself.
+ In the latest patch it is possible to configure caching for the field collapsing execution.
This is an extra cache in addition
+ to the already existing caches. It caches the result of the collapse logic and configured
collapse collectors.
+ The following xml configuration can be placed inside the solrconfig.xml as child of the
config element.
+ {{{
+   <fieldCollapsing>
+   	<fieldCollapseCache
+       class="solr.FastLRUCache"
+       size="512"
+       initialSize="512"
+       autowarmCount="128"/>
+   </fieldCollapsing>
+ }}}
+ If the field collapse cache is not configured then the field collapse logic will not be
  == Parameters ==
  ||'''param''' ||'''description''' ||
  ||collapse.type ||normal/adjacent -- does this collapse all fields or just the ones that
are next to each other.  Defaults to normal ||
  ||collapse.field ||Which field to collapse. If this field is not specified then field collapsing
is not enabled and falls back to to the QueryComponent to do a search. ||
  ||collapse.facet ||before/after -- apply faceting before or after collapsing.  Defaults
to after ||
- ||collapse.max ||Deprecated use collapse.threshold instead ||
+ ||collapse.max ||Deprecated use collapse.threshold instead. This parameter is removed in
the latest patch. ||
  ||collapse.threshold ||The number of documents with the same value for collapse.field after
which collapsing kicks in. The default value is one. ||
  ||collapse.maxdocs ||Maximum number of documents to process during field collapsin. This
parameter defaults to one greater then the largest document number. ||
  || ||Return collapse count for each document? Defaults to true ||

View raw message