fields

This block is part of the query group and was last modified in core v10.4.28.

Fields Selection Required

This block relies on fields that you selected to perform its data actions. You must manually select the fields you want to use in your flow using the fields selector modal. To access the modal, click the white button on the block.

Field Selection Required

This block requires field selection (in). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.

Connection Type

This block connects from a query type block. Make sure to connect this block to the appropriate left-hand side connection.

Parent Requirements

This block requires specific parent elements: query_bool_must, query_bool_must_not, query_bool_filter, query_bool_should, query_first_defined. Ensure this block is placed within the appropriate parent context.

fields v10.4.28

In pins 1
  • boost
    number

    The amount of score boosting would be applied whenever this matches.

    Default 1

Out pins 1
  • query
    query

Emits one exact-match term clause per selected field, as an array: {"term": {field: {"value": V, "boost": B}}}. An unwired field pin defaults to "" (date fields become 0 when empty and are converted to Unix seconds when set); condition fields are coerced to real booleans (""/"false"/"0"/"no" become false) so an unwired flag matches false instead of breaking the search. Value-typed fields target the .keyword sub-field; a geo_point field becomes a 10km geo_distance clause instead of a term. boost defaults to 1.

fields
match
term

fields matches documents whose selected field equals the value on its pin, fed here by a value block. The query goes through must into search, the standard search setup in real blueprints.

Studio canvas example for the fields block: a term query on selected fields.

Commonly used with

One of the most-used blocks across production blueprints. It is most often wired together with:

  • must: this block feeds into it. All queries provided must match.
  • get fields: feeds into this block. Gets the selected fields from the given object.
  • filter: this block feeds into it. Build a custom query using higher-level bool query.
  • value: feeds into this block. Simply returns the provided value.
  • get guid: feeds into this block. Returns the guid (field: _meta.guid) of the given user.
  • create: feeds into this block. Creates a new function that can be executed using the given name.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v10.4.28.


Back to query Return to the main group to view all sub-groups Back to query: term Return to the group to view all blocks within this group