jamespot-user-api
    Preparing search index...

    Class JSearchApi

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    network: Network

    Methods

    • Return a page of results based on a text query and various filters. All parameters are optional

      Parameters

      • query: SearchQuery
      • Optionalparams: {
            formatExtension?: (
                | "comments"
                | "search"
                | "actions"
                | "attachments"
                | "contact"
                | "filebank"
                | "licenses"
                | "licensesExtrabot"
                | "messenger"
                | "filebankPath"
                | "parentArticle"
                | "quarantine"
                | "quizFieldDefinitions"
                | "quizResponseRecord"
                | "recurringEventRecord"
                | "socialEventRecord"
                | "surveyDateRecord"
                | "bookmark"
            )[];
            signal?: AbortSignal;
        }

      Returns Promise<
          ApiWrapper<
              {
                  categories: SearchCategoryValue[];
                  count: number;
                  facets: SearchFacetValueModel[];
                  results: jObjectLittle[];
                  start: number;
              },
              BaseMessages,
          >,
      >

      @SearchQueryFilterModel.

      default score then date

      to cancel the fetch

      // Todo add query.facets (to be specified first)