Package version:

Type Alias SuggestResult<TModel, TFields>

SuggestResult<TModel, TFields>: {
    document: SuggestNarrowedModel<TModel, TFields>;
    text: string;
}

A result containing a document found by a suggestion query, plus associated metadata.

Type Parameters

Type declaration

  • document: SuggestNarrowedModel<TModel, TFields>
  • Readonlytext: string

    The text of the suggestion result. NOTE: This property will not be serialized. It can only be populated by the server.