indexing.collapse_fields

Defines the fields used for result collapsing.

Key: indexing.collapse_fields
Type: String
Can be set in: collection.cfg

Description

Defines the fields used for result collapsing.

The collapsing fields are sequences of metadata class characters separated by commas. The characters $ and # are special metadata class characters for result collapsing, representing document summary text and document URL respectively. Commas are used to separate columns which can be selected at query time using the appropriate query processor option.

Default Value

Results are collapsed by their summary text by default:

indexing.collapse_fields=[$],[H]

Examples

Generate 2 signatures per document: Column 0 is the normal document signature and column 1 is a signature derived from the concatenation of metadata fields t and a in that order:

indexing.collapse_fields=[$],[t,a]

⚠ Caveats

  • When t is used as the collapsing field, collapsing will apply for the actual value of the t metadata, which may be different from the document title. The best way to understand the differences is to display both the result title, and the value of the t metadata next to each other (Using the JSON or XML endpoint and the &SM=meta&SF=[t] CGI parameters). Usually, t will be multi-valued as the default metadata mapping maps it to different title fields and HTML h1-h4 headers.