DOIP Client Library - JavaScript Version
    Preparing search index...

    Class SearchUtil

    Convenience functions for manipulating SearchResults.

    Index

    Properties

    searchResultsToJson: <T>(
        searchResults: SearchResults<T>,
    ) => Promise<Record<string, Json>>

    Type declaration

      • <T>(searchResults: SearchResults<T>): Promise<Record<string, Json>>
      • Function

        Fully reads a SearchResults, returning (asynchronously) the whole results as JSON.

        Type Parameters

        • T

          The type of items in the search results. Either string or DigitalObject.

        Parameters

        Returns Promise<Record<string, Json>>

        The search results as JSON with a property "results" which is a JSON array.