Skip to content

basalt / search/src / SearchFilterNotFilterableError

Class: SearchFilterNotFilterableError ​

Defined in: search/src/search.ts:30

A filter on a field the index did not declare filterable. Letting any stored field be filtered turns search into an oracle for values the index holds but never meant to expose ("does anyone earn 90000?").

Extends ​

Constructors ​

Constructor ​

> new SearchFilterNotFilterableError(index, field): SearchFilterNotFilterableError

Defined in: search/src/search.ts:32

Parameters ​

index ​

string

field ​

string

Returns ​

SearchFilterNotFilterableError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 400 = 400

Defined in: search/src/search.ts:31

Released under the MIT License.