11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This parameter can be specified on a per-field basis to apply a distinct limit to each field with the syntax of f.<br />

.facet.limit.<br />

The facet.offset Parameter<br />

The facet.offset parameter indicates an offset into the list of constraints to allow paging.<br />

The default value is 0.<br />

This parameter can be specified on a per-field basis with the syntax of f..facet.offset.<br />

The facet.mincount Parameter<br />

The facet.mincount parameter specifies the minimum counts required for a facet field to be included in<br />

the response. If a field's counts are below the minimum, the field's facet is not returned.<br />

The default value is 0.<br />

This parameter can be specified on a per-field basis with the syntax of f..facet.mincount.<br />

The facet.missing Parameter<br />

If set to true, this parameter indicates that, in addition to the Term-based constraints of a facet field, a count<br />

of all results that match the query but which have no facet value for the field should be computed and<br />

returned in the response.<br />

The default value is false.<br />

This parameter can be specified on a per-field basis with the syntax of f..facet.missing.<br />

The facet.method Parameter<br />

The facet.method parameter selects the type of algorithm or method <strong>Solr</strong> should use when faceting a field.<br />

Setting<br />

enum<br />

fc<br />

Results<br />

Enumerates all terms in a field, calculating the set intersection of documents that match the term<br />

with documents that match the query. This method is recommended for faceting multi-valued<br />

fields that have only a few distinct values. The average number of values per document does not<br />

matter. For example, faceting on a field with U.S. States such as Alabama, Alaska, ...<br />

Wyoming would lead to fifty cached filters which would be used over and over again. The filte<br />

rCache should be large enough to hold all the cached filters.<br />

Calculates facet counts by iterating over documents that match the query and summing the<br />

terms that appear in each document. This is currently implemented using an UnInvertedField<br />

cache if the field either is multi-valued or is tokenized (according to FieldType.isTokened() )<br />

. Each document is looked up in the cache to see what terms/values it contains, and a tally is<br />

incremented for each value. This method is excellent for situations where the number of indexed<br />

values for the field is high, but the number of values per document is low. For multi-valued fields,<br />

a hybrid approach is used that uses term filters from the filterCache for terms that match<br />

many documents. The letters fc stand for field cache.<br />

fcs Per-segment field faceting for single-valued string fields. Enable with facet.method=fcs and<br />

control the number of threads used with the threads local parameter. This parameter allows<br />

faceting to be faster in the presence of rapid index changes.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

298

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!