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 caching. http://wiki.apache.org/solr/FieldCollapsing?action=diff&rev1=11&rev2=12 -------------------------------------------------- }}} 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 cached. + == 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. || ||collapse.info.doc ||Return collapse count for each document? Defaults to true ||
