1 {"slug":"/references/utils/SearchUtils/classes/utils.SearchUtils.SearchBuilder","title":"SearchBuilder","frontmatter":{},"toc":[{"title":"constructor","id":"constructor","level":2},{"title":"Methods","id":"methods","level":2},{"title":"define","id":"define","level":3},{"title":"Example","id":"example","level":4},{"title":"Type Parameters","id":"define-type-parameters","level":4},{"title":"Parameters","id":"define-parameters","level":4},{"title":"Returns","id":"define-returns","level":4},{"title":"keyword","id":"keyword","level":3},{"title":"Returns","id":"keyword-returns","level":4},{"title":"text","id":"text","level":3},{"title":"Returns","id":"text-returns","level":4},{"title":"integer","id":"integer","level":3},{"title":"Returns","id":"integer-returns","level":4},{"title":"float","id":"float","level":3},{"title":"Returns","id":"float-returns","level":4},{"title":"boolean","id":"boolean","level":3},{"title":"Returns","id":"boolean-returns","level":4},{"title":"date","id":"date","level":3},{"title":"Returns","id":"date-returns","level":4},{"title":"geo","id":"geo","level":3},{"title":"Returns","id":"geo-returns","level":4},{"title":"object","id":"object","level":3},{"title":"Type Parameters","id":"object-type-parameters","level":4},{"title":"Parameters","id":"object-parameters","level":4},{"title":"Returns","id":"object-returns","level":4},{"title":"vector","id":"vector","level":3},{"title":"Parameters","id":"vector-parameters","level":4},{"title":"Returns","id":"vector-returns","level":4}],"blocks":[{"kind":"markdown","html":"Builder that exposes the search fields DSL — analogous to DML's EntityBuilder,\nbut only for index field schemas (registration stays on `defineSearchIndex`)."},{"kind":"heading","level":2,"text":"constructor","id":"constructor"},{"kind":"heading","level":2,"text":"Methods","id":"methods"},{"kind":"heading","level":3,"text":"define","id":"define"},{"kind":"markdown","html":"Define a search fields schema. Pass the result as `fields` to\n`defineSearchIndex`. Does not register anything."},{"kind":"heading","level":4,"text":"Example","id":"example"},{"kind":"markdown","html":"```ts\ndefineSearchIndex({\n name: \"product\",\n entity: \"product\",\n fields: search.define({\n id: search.keyword().filterable(),\n title: search.text().searchable({ weight: 3 }),\n }),\n async *seed() {},\n})\n```"},{"kind":"heading","level":4,"text":"Type Parameters","id":"define-type-parameters"},{"kind":"typeList","sectionTitle":"define","types":[{"name":"Schema","type":"[SearchSchema](/references/types/SearchTypes/types/types.SearchTypes.SearchSchema)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":4,"text":"Parameters","id":"define-parameters"},{"kind":"typeList","sectionTitle":"define","types":[{"name":"schema","type":"Schema","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":4,"text":"Returns","id":"define-returns"},{"kind":"typeList","sectionTitle":"define","types":[{"name":"SearchFieldsSchema","type":"[SearchFieldsSchema](/references/utils/SearchUtils/classes/utils.SearchUtils.SearchFieldsSchema)&#60;Schema&#62;","optional":false,"defaultValue":"","description":"Define a search fields schema. Pass the result as `fields` to\n`defineSearchIndex`. Does not register anything.","expandable":false,"children":[]}]},{"kind":"heading","level":3,"text":"keyword","id":"keyword"},{"kind":"heading","level":4,"text":"Returns","id":"keyword-returns"},{"kind":"typeList","sectionTitle":"keyword","types":[{"name":"constructor","type":"() => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean`) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [KeywordProperty](/references/utils/classes/utils.KeywordProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"weight","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"searchable","type":"(`value`: `boolean` \\| ``{ weight?: number }``) => [KeywordProperty](/references/utils/classes/utils.KeywordProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;string&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"keyword\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"text","id":"text"},{"kind":"heading","level":4,"text":"Returns","id":"text-returns"},{"kind":"typeList","sectionTitle":"text","types":[{"name":"constructor","type":"() => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean`) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [TextProperty](/references/utils/classes/utils.TextProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"weight","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"searchable","type":"(`value`: `boolean` \\| ``{ weight?: number }``) => [TextProperty](/references/utils/classes/utils.TextProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;string&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"text\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"integer","id":"integer"},{"kind":"heading","level":4,"text":"Returns","id":"integer-returns"},{"kind":"typeList","sectionTitle":"integer","types":[{"name":"constructor","type":"() => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`number`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [IntegerProperty](/references/utils/classes/utils.IntegerProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;number&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => [IntegerProperty](/references/utils/classes/utils.IntegerProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"integer\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"float","id":"float"},{"kind":"heading","level":4,"text":"Returns","id":"float-returns"},{"kind":"typeList","sectionTitle":"float","types":[{"name":"constructor","type":"() => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`number`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [FloatProperty](/references/utils/classes/utils.FloatProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;number&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => [FloatProperty](/references/utils/classes/utils.FloatProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"float\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"boolean","id":"boolean"},{"kind":"heading","level":4,"text":"Returns","id":"boolean-returns"},{"kind":"typeList","sectionTitle":"boolean","types":[{"name":"constructor","type":"() => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`boolean`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean`) => [BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [BooleanProperty](/references/utils/classes/utils.BooleanProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;boolean&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"boolean\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"date","id":"date"},{"kind":"heading","level":4,"text":"Returns","id":"date-returns"},{"kind":"typeList","sectionTitle":"date","types":[{"name":"constructor","type":"() => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`string` \\| `Date`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [DateProperty](/references/utils/classes/utils.DateProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;string \\| Date&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => [DateProperty](/references/utils/classes/utils.DateProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"date\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"geo","id":"geo"},{"kind":"heading","level":4,"text":"Returns","id":"geo-returns"},{"kind":"typeList","sectionTitle":"geo","types":[{"name":"constructor","type":"() => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"`object`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"lat","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"lng","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"retrievable","type":"(`value`: `boolean`) => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"providerOptions","type":"(`options`: `Record<string, Record&#60;string, unknown&#62;>`) => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"(`value`: `boolean`) => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sortable","type":"(`value`: `boolean`) => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"facetable","type":"(`value`: `boolean`) => [GeoProperty](/references/utils/classes/utils.GeoProperty)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"setFacetable","type":"(`value`: `boolean` \\| ``{ types?: [SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[] }``) => `void`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"array","type":"() => [GeoProperty](/references/utils/classes/utils.GeoProperty) & [SearchArrayMarker](/references/types/SearchTypes/interfaces/types.SearchTypes.SearchArrayMarker)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parse","type":"(`fieldName`: `string`) => [SearchPropertyMetadata](/references/types/SearchTypes/types/types.SearchTypes.SearchPropertyMetadata)&#60;&#123; lat: number ; lng: number &#125;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"geo\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"object","id":"object"},{"kind":"heading","level":4,"text":"Type Parameters","id":"object-type-parameters"},{"kind":"typeList","sectionTitle":"object","types":[{"name":"Schema","type":"[SearchSchema](/references/types/SearchTypes/types/types.SearchTypes.SearchSchema)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":4,"text":"Parameters","id":"object-parameters"},{"kind":"typeList","sectionTitle":"object","types":[{"name":"schema","type":"Schema","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":4,"text":"Returns","id":"object-returns"},{"kind":"typeList","sectionTitle":"object","types":[{"name":"ObjectProperty","type":"[ObjectProperty](/references/utils/classes/utils.ObjectProperty)&#60;Schema&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]},{"kind":"heading","level":3,"text":"vector","id":"vector"},{"kind":"heading","level":4,"text":"Parameters","id":"vector-parameters"},{"kind":"typeList","sectionTitle":"vector","types":[{"name":"dimensions","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":4,"text":"Returns","id":"vector-returns"},{"kind":"typeList","sectionTitle":"vector","types":[{"name":"VectorProperty","type":"[VectorProperty](/references/utils/classes/utils.VectorProperty)&#60;number[]&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"number[]","type":"`number`[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"number","type":"`number`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}]}