All Products
Search
Document Center

:kvpairs clause

Last Updated:Aug 27, 2024

Overview

You can use a kvpairs clause to assign values to fields that are referenced in the mutable part of a sort expression. This way, you can pass field values to specific feature functions by using a query clause.

Syntax

{
  "kvpairs" : {
  }
}
  • key1 specifies the field name, and value1 specifies the value of the key1 field.

  • You can define multiple key-value pairs as needed.

Example:

{
  "kvpairs" : {
    "key1" : "value1",
    "key2" : "value2"
  }
}

Usage notes

  • A kvpairs clause is optional.