Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchIndex

Class representing an Algolia Search Index.

Hierarchy

Index

Constructors

constructor

Properties

Optional _links

_links: Map<string, HalLink>

Optional createdDate

createdDate: string

Timestamp representing when the Index was originally created.

Optional id

id: string

Unique id generated on creation.

Optional label

label: string

Friendly display label for index.

Optional lastModifiedDate

lastModifiedDate: string

Timestamp representing when the Index was last updated.

Optional name

name: string

Generated index name including the hub name and user defined suffix.

Optional parentId

parentId: string

Id of the replicas parent index (only present on replica indexes).

Optional replicaCount

replicaCount: number

Number of replica indexes for this index (only present on non-replica indexes).

Optional suffix

suffix: string

User defined suffix used to uniquely name the index.

Optional type

type: string

Type of index.

Methods

Protected performActionWithoutResourceResponse

  • performActionWithoutResourceResponse(name: string, params: any, data: any, method?: POST | PATCH | PUT): Promise<void>

toJSON

  • toJSON(): any

toJson

  • toJson(): any

Object literals

Readonly related

related: object

Resources and actions related to a Search Index.

clear

delete

  • delete(): Promise<void>

hub

  • hub(): Promise<Hub>

update

assignedContentTypes

assignedContentTypes: object

create

get

list

indexObject

indexObject: object

delete

  • delete(id: string): Promise<void>

keys

keys: object

get

no-results-rate

no-results-rate: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; startDate: string; tags: string }): Promise<SearchIndexNoResultsRate>

replicas

replicas: object

list

searches-count

searches-count: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; startDate: string; tags: string }): Promise<SearchIndexSearchesCount>

searches-with-no-results

searches-with-no-results: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; startDate: string; tags: string }): Promise<SearchIndexSearchesWithNoResultsCollection>
  • Parameters

    • __namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; startDate: string; tags: string }
      • endDate: string
      • includeReplicas: boolean
      • limit: number
      • offset: number
      • startDate: string
      • tags: string

    Returns Promise<SearchIndexSearchesWithNoResultsCollection>

settings

settings: object

get

update

stats

stats: object

get

top-filters-no-result-search

top-filters-no-result-search: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; search: string; startDate: string; tags: string }): Promise<SearchIndexTopFiltersNoResultSearchCollection>
  • Parameters

    • __namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; search: string; startDate: string; tags: string }
      • endDate: string
      • includeReplicas: boolean
      • limit: number
      • offset: number
      • search: string
      • startDate: string
      • tags: string

    Returns Promise<SearchIndexTopFiltersNoResultSearchCollection>

top-hits

top-hits: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; search: string; startDate: string; tags: string }): Promise<SearchIndexTopHitsCollection>
  • Parameters

    • __namedParameters: { endDate: string; includeReplicas: boolean; limit: number; offset: number; search: string; startDate: string; tags: string }
      • endDate: string
      • includeReplicas: boolean
      • limit: number
      • offset: number
      • search: string
      • startDate: string
      • tags: string

    Returns Promise<SearchIndexTopHitsCollection>

top-searches

top-searches: object

get

  • get(__namedParameters: { clickAnalytics: boolean; direction: "asc" | "desc"; endDate: string; includeReplicas: boolean; limit: number; offset: number; orderBy: SearchesOrderBy; startDate: string; tags: string }): Promise<SearchIndexTopSearchesCollection>
  • Parameters

    • __namedParameters: { clickAnalytics: boolean; direction: "asc" | "desc"; endDate: string; includeReplicas: boolean; limit: number; offset: number; orderBy: SearchesOrderBy; startDate: string; tags: string }
      • clickAnalytics: boolean
      • direction: "asc" | "desc"
      • endDate: string
      • includeReplicas: boolean
      • limit: number
      • offset: number
      • orderBy: SearchesOrderBy
      • startDate: string
      • tags: string

    Returns Promise<SearchIndexTopSearchesCollection>

users-count

users-count: object

get

  • get(__namedParameters: { endDate: string; includeReplicas: boolean; startDate: string; tags: string }): Promise<SearchIndexUsersCount>
  • Parameters

    • __namedParameters: { endDate: string; includeReplicas: boolean; startDate: string; tags: string }
      • endDate: string
      • includeReplicas: boolean
      • startDate: string
      • tags: string

    Returns Promise<SearchIndexUsersCount>

Generated using TypeDoc