Summary index
Introduction to summary indexes
A summary index stores the information of a document together. The docID can be used to locate where the information of the document is stored, which allows the summary index to provide storage and retrieval services for summary information. The structure of a summary index is similar to that of a forward index, but the two serve different purposes.
Summary index configuration example
"summarys":
{
"summary_fields":["id", "company_id", "subject", "cat_id"],
"compress":false,
"parameter" : {
"compress_type" : "uniq|equal",
"file_compress" : "simple_compress1"
}
}summary_fields specifies the fields to include in the summary. No restrictions apply to field types.
compress specifies whether to compress the summary by using zlib. The value true indicates that the summary is compressed, and the value false indicates that the summary is not compressed. Default value: false.
After a summary is configured for a field of the TIMESTAMP type, the field is stored in the attribute by default. This allows formats to be processed uniformly in default time zone scenarios.
parameter is used to configure parameters. This setting is supported in Ha3 3.9.1 and later. The following parameters are supported:
compress_type: the encoding method. For more information, see the descriptions of uniq and equal in the fields section.
file_compress: enables file-level compression. Specify a compression alias defined in file_compress, which is configured in the schema. File-level compression provides better compression than the compress setting described in item 2. After you enable file-level compression, we recommend that you set compress in item 2 to false to achieve better compression.