The field action creators.

interface FieldActionCreators {
    disableFetchAllFields(): { payload: void; type: string };
    enableFetchAllFields(): { payload: void; type: string };
    fetchFieldsDescription(): AsyncThunkAction<
        FieldDescription[],
        void,
        AsyncThunkSearchOptions<ConfigurationSection>,
    >;
    registerFieldsToInclude(
        fields: string[],
    ): { payload: string[]; type: string };
}

Methods

  • Disable fetch all fields from the index.

    Returns { payload: void; type: string }

    A dispatchable action.

  • Enable fetch all fields from the index.

    This should not be used in any production environment, as it can have a negative impact on query execution time.

    Should be used for debugging purposes.

    Returns { payload: void; type: string }

    A dispatchable action.

  • Fetch field descriptions from the index.

    Returns AsyncThunkAction<
        FieldDescription[],
        void,
        AsyncThunkSearchOptions<ConfigurationSection>,
    >

    A dispatchable action.

  • Registers the fields to include in the query response.

    Parameters

    • fields: string[]

      The target fields (e.g., ["field1", "field2"]).

    Returns { payload: string[]; type: string }

    A dispatchable action.