All Products
Search
Document Center

OpenSearch:Summary indexes

Last Updated:Aug 27, 2024

Introduction

A summary index can store information that corresponds to a document. OpenSearch Vector Search Edition can use the document ID to obtain the location in which the information is stored. This way, OpenSearch Vector Search Edition can provide you with the storage location of the information. The schema of a summary index is similar to the schema of a forward index. The features of the indexes are different.

Sample code for configuring a summary index

"summarys":
{
	"summary_fields":["id", "company_id", "subject", "cat_id"],
	"compress":false,
  "parameter" : {
      "compress_type" : "uniq|equal",    
      "file_compress" : "simple_compress1"
  } 
}
  • The summary_fields parameter specifies the fields that you want to store in your summary index. You can specify fields of all data types for this parameter.

  • The compress parameter specifies whether to compress your summary index by using zlib. The valid values are true and false. The value true indicates to compress your summary index, and the value false indicates to not compress your summary index. The default value is false.

  • When you specify a field of the TIMESTAMP data type as a summary index, the field is stored as an attribute. This way, the time format is processed by the system in a centralized manner if the default time zone is used.

  • You can use the parameter field to configure specific parameters. OpenSearch Vector Search Edition V3.9.1 and later versions support the parameter field. The following parameters are supported:

  • compress_type: the encoding method. For information about uniq and equal, see Forward index compression.

  • file_compress: indicates to compress files. You must specify the alias of a compressed file for the file_compress parameter after you specify the alias in the schema.json file. The method specified by the file_compress parameter provides better performance for compression than the method specified by the compress parameter. We recommend that you set the value of the compress parameter to false and configure the file_compress parameter to provide better performance for compression.