younifyd
Menu

Get Field 2

Show field

GET/rest/organizations/{organizationId}/indexes/fields/{fieldId}

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Get Field 2 action (under Field).
  3. Fill in the fields below, then reference the result from later steps as {{getField2.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br /><b>Example:</b> `mycoveocloudv2organizationg8tp8wu3`

fieldIdstringrequired

The `name` property of the field to retrieve.<br />**Example:** `numberoflikes`

Response

Returns 200 with an object. Read it in later steps with {{getField2.response.data.<field>}}.

automaticFacetsCandidateboolean

Whether this [field](https://docs.coveo.com/en/200/) is to be considered by the facet generator feature.<br />**Default:** `false`.

Default false

automaticFacetsCandidateTagsarray<string>

Optional list of tags that specify which properties/contexts this field should be an AFG candidate for. An empty or null list means the field is an AFG candidate for all properties (org-wide). Tag names must be 1-64 characters and contain only alphanumeric characters (a-z, A-Z, 0-9), dots (.), hyphens (-), underscores (_), or colons (:).<br />**Example:** `["store1", "us.retail", "brand-name_123"]`

dateFormatstring

A regex indicating the date format, for some `date` type fields.<br />**Example:** `%Y/%m/%d@%H:%M:%S%G`

descriptionstring

A description of the [field](https://docs.coveo.com/en/200/).<br />**Example:** `The date of creation of a given item`

facetboolean

Whether [Group By](https://docs.coveo.com/en/203/) operations and [Facet](https://docs.coveo.com/en/198/) requests can be performed on the [field](https://docs.coveo.com/en/200/).<br />This option can't be set to `false` on a non-`STRING` type field.<br />**Default:**<br /> - `false` for `STRING` type fields.<br /> - `true` for all other types of fields.

hierarchicalFacetboolean

Whether the [field](https://docs.coveo.com/en/200/) contains multiple values that form a hierarchy (see also the `multiValueFacetTokenizers` property).<br />**Note:** Applicable to field type `STRING` only.<br />**Default:** `false`

Default false

includeInQueryboolean

Whether this [field](https://docs.coveo.com/en/200/) can be referred to in [Coveo Cloud query syntax](https://docs.coveo.com/en/1552/) expressions (for example, `@myfield=myvalue`).<br /> Coveo Atomic and Headless often rely on the fact that most fields can be referred to in query expressions.Therefore, explicitly setting this option to `false` is not recommended, unless you know for sure that this field is only used to return information on query results.An example where it would make sense to set to `false` would be a field that contains large blobs of data that you want to display in query results, but never want to search on.<br />**Default:** `true`

Default true

includeInResultsboolean

Whether the [field](https://docs.coveo.com/en/200/) can be included in the `raw` property of [query](https://docs.coveo.com/en/231/) results.<br />The Search API lets you explicitly specify which fields you want to include in or exclude from the `raw` property of each result at query time.<br />Moreover, the [index](https://docs.coveo.com/en/204/) can include a given field in the `raw` property of a query result only if this field has a non-null value for this particular result.<br /> Therefore, explicitly setting this option to `false` on a field isn't recommended, unless you want to override this behavior and ensure that this field can never be included in the `raw` property of any query result.<br />**Default:** `true`

Default true

keepAccentsDisplayValueFacetboolean

Whether [field](https://docs.coveo.com/en/200/) values with differing accents should be considered distinct facet values (e.g., `quebec` vs `québec`).<br />**Note:** Applicable to field type `STRING` only.<br />**Default:** `false`

Default false

keepDistinctDisplayValueFacetboolean

Whether [field](https://docs.coveo.com/en/200/) values with differing accents, ligatures, or casing should be considered distinct facet values.<br />This parameter encompasses the behavior of **keepAccentsDisplayValueFacet** but adds differentiation for ligatures (e.g., `ß` vs `ss`) and case sensitivity (e.g., `Québec` vs `québec`).<br />**Note:** Applicable to field type `STRING` only.<br />**Default:** `false`

Default false

keyValueboolean

Whether the field is a [dictionary field](https://docs.coveo.com/en/2036/), which contains mappings of keys to values instead of a single value.<br />**Default:** `false`

Default false

labelstring

A displayable label for the [field](https://docs.coveo.com/en/200/) when used by the facet generator.

mergeWithLexiconboolean

Whether the field is [free text searchable](https://docs.coveo.com/en/1833#free-text-search).<br />**Note:** Applicable to field type `STRING` only.<br />**Default:** `false`

Default false

multiValueFacetboolean

Whether the [field](https://docs.coveo.com/en/200/) contains multiple values (see also the `multiValueFacetTokenizers` property).<br />**Note:** Applicable to field type `STRING` only.<br />**Default:** `false`

Default false

multiValueFacetTokenizersstring

The character to use as a value separator, if the [field](https://docs.coveo.com/en/200/) contains multiple values (see also the `multiValueFacet` property). <br />**Example:** `;`

multilingualboolean

Whether the [field](https://docs.coveo.com/en/200/) contains a mapping of languages to values instead of a single value.<br />**Note:** Applicable to field type `STRING` only. This option requires the `keyValue` option to be enabled.<br />**Default:** `false`

Default false

namestring

The name of the [field](https://docs.coveo.com/en/200/), also referred to as the field identifier, or `fieldId`.<br />**Note:** Must match `^([a-z][a-z0-9_]{0,254})$`<br />**Example:** `date`

projectIdsarray<string>

List of Project IDs a [field](https://docs.coveo.com/en/200/) can be associated with.<br />**Note:** This is an optional list of `STRING`<br />**Default:** `null`

rankingboolean

Whether to use the [field](https://docs.coveo.com/en/200/) in result ranking calculation only.<br />**Notes:** <br /> - Has a significant impact on query performance.<br /> - Applicable to field type `STRING`<br /><br /> **Default:** `false`

Default false

smartDateFacetboolean

It is heavily recommended to set this option to `false` unless you know for sure you need it.<br /><br />Whether to transform date and time string values into semicolon separated number of days/weeks/months/quarters/years since January 1st, 1900.<br />**Note:** Applicable to [field](https://docs.coveo.com/en/200/) type `DATE` only.<br />If you set this option to `true` on a `DATE` type field, the field itself will be populated by the number of milliseconds since Unix epoch corresponding to the parsed date and time string, as usual.<br />However, the index will also automatically create a new field, and populate it with the smart date data. <br />**Default:** `false`<br /><br />Example:<br />You create the `mydate` field in your [index](https://docs.coveo.com/en/204/) and set the `smartDateFacet` option to `true` on that field. The index processes a source item whose `mydate` metadata value is `2017-11-20T19:58:55.126Z`. The `mydate` metadata is mapped to the `mydate` field in that source.<br />The index populates the `mydate` field with the corresponding number of milliseconds since Unix epoch (that is, `1511207935000`). It also creates a `mydatesmartfacet` field and populates it with the smart date data (that is, `D43057;W6151;M1414;Q471;Y117`).

Default false

sortboolean

Whether [query](https://docs.coveo.com/en/231/) results can be sorted based on the value of the [field](https://docs.coveo.com/en/200/).Having lots of sortable `STRING` type fields in a Coveo organization can have an adverse effect on its [index](https://docs.coveo.com/en/204/) size and performance.<br />This option can't be set to `false` on a non-`STRING` type field.<br />**Default:**<br /> - `false` for `STRING` type fields.<br /> - `true` for all other types of fields.

stemmingboolean

Whether to allow [stemming](https://docs.coveo.com/en/1576/) on [field](https://docs.coveo.com/en/200/) [queries](https://docs.coveo.com/en/231/).<br />**Notes:** <br /> - applicable to `STRING` type fields only. <br /> - Has a significant impact on query performance. <br /><br />**Default:** `false`

Default false

systemboolean

Whether the [field](https://docs.coveo.com/en/200/) is a standard Coveo field.<br />**Note:** `system` option can not be set to `true`.<br />**Default:** `false`

typestring

The data type of the [field](https://docs.coveo.com/en/200/).<br />See [Field Types](https://docs.coveo.com/en/1833/#field-type).<br />**Allowed values:** <br /> - `DATE`<br /> - `LONG`<br /> - `LONG_64`<br /> - `DOUBLE`<br /> - `STRING`<br />

One ofLONGLONG_64DOUBLEDATESTRINGVECTOR

useCacheForComputedFacetboolean

Whether to keep computed field data in memory.<br />**Note:** Cannot be enabled on `STRING` type fields.<br />**Default:** `false`

Default false

useCacheForNestedQueryboolean

Whether to keep the data required to perform [nested queries](https://docs.coveo.com/en/220) in memory. Setting this option to `true` on a [field](https://docs.coveo.com/en/200/) also speeds query performance for expressions that compare the value of this field using [regex, wildcard, phonetic match, or fuzzy match query operators](https://docs.coveo.com/en/1552).<br />**Note:** only applicable to fields which are faceted or multi-value faceted.<br />**Default:** `false`

Default false

useCacheForNumericQueryboolean

Whether to keep the data required to execute operations on numeric and date [fields](https://docs.coveo.com/en/200/) in memory.<br />**Note:** Cannot be enabled on `STRING` type fields.<br />**Default:** `false`

Default false

useCacheForSortboolean

Whether to keep the entire [field](https://docs.coveo.com/en/200/) in memory for fast sorting.<br />**Default:** `false`<br />This option can't be set to true on a `STRING` type field, unless the `sort` option is also `true` for that field.

Default false

json
{
  "automaticFacetsCandidate": false,
  "automaticFacetsCandidateTags": [
    "string"
  ],
  "dateFormat": "%Y/%m/%d@%H:%M:%S%G",
  "description": "string",
  "facet": false,
  "hierarchicalFacet": false,
  "includeInQuery": true,
  "includeInResults": true,
  "keepAccentsDisplayValueFacet": false,
  "keepDistinctDisplayValueFacet": false,
  "keyValue": false,
  "label": "string"
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.

Get Field 2 — Coveo — Documentation