Skip to content

SearchIndexBuilder

Defined in: builder/search.ts:48

TTypes extends AppBuilderTypes = AppBuilderTypes

readonly prn: string

Defined in: builder/index.ts:32

BaseBuilder.prn


readonly union: UnionBuilder

Defined in: builder/search.ts:49

addTemplate<TTemplate>(template, handler): this

Defined in: builder/search.ts:59

Adds this template to the index. The handler converts the item to text and facets. The text is concatenated for term-based searches. The facets are used for facet-based queries.

Supplying a handler for a template that’s already been added will replace the previous handler.

TTemplate extends TemplateBuilder

TTemplate

SearchIndexHandler<ExtractReadItem<TTemplate["prn"], TTypes>>

this


setDescription(description): this

Defined in: builder/index.ts:33

string

this

BaseBuilder.setDescription


toDefinition(): SearchIndexDefinition

Defined in: builder/search.ts:67

Emit this builder as a definition.

SearchIndexDefinition