Skip to content

Commit 79cb5f5

Browse files
committed
Merge branch 'dev/1.26' of https://github.com/weaviate/typescript-client into dev/support-new-tenant-naming-convention
2 parents 7730958 + 338ce5e commit 79cb5f5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/openapi/schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ export interface definitions {
512512
indexFilterable?: boolean;
513513
/** @description Optional. Should this property be indexed in the inverted index. Defaults to true. Applicable only to properties of data type text and text[]. If you choose false, you will not be able to use this property in bm25 or hybrid search. This property has no affect on vectorization decisions done by modules */
514514
indexSearchable?: boolean;
515-
/** @description Optional. TODO roaring-set-range */
516-
indexRangeable?: boolean;
515+
/** @description Optional. Should this property be indexed in the inverted index. Defaults to false. Provides better performance for range queries compared to filterable index in large datasets. Applicable only to properties of data type int, number, date. */
516+
indexRangeFilters?: boolean;
517517
/**
518518
* @description Determines tokenization of the property as separate words or whole field. Optional. Applies to text and text[] data types. Allowed values are `word` (default; splits on any non-alphanumerical, lowercases), `lowercase` (splits on white spaces, lowercases), `whitespace` (splits on white spaces), `field` (trims). Not supported for remaining data types
519519
* @enum {string}
@@ -536,7 +536,7 @@ export interface definitions {
536536
name?: string;
537537
indexFilterable?: boolean;
538538
indexSearchable?: boolean;
539-
indexRangeable?: boolean;
539+
indexRangeFilters?: boolean;
540540
/** @enum {string} */
541541
tokenization?: 'word' | 'lowercase' | 'whitespace' | 'field';
542542
nestedProperties?: definitions['NestedProperty'][];

src/schema/journey.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('schema', () => {
6969
name: 'anotherProp',
7070
tokenization: 'field',
7171
indexFilterable: true,
72-
indexRangeable: (await isVer(client, 26, 0)) ? false : undefined,
72+
indexRangeFilters: (await isVer(client, 26, 0)) ? false : undefined,
7373
indexSearchable: true,
7474
moduleConfig: {
7575
'text2vec-contextionary': {
@@ -539,7 +539,7 @@ describe('property setting defaults and migrations', () => {
539539

540540
const errMsg1 = isVer(client, 26, 0).then((yes) =>
541541
yes
542-
? '`indexInverted` is deprecated and can not be set together with `indexFilterable`, `indexSearchable` or `indexRangeable`'
542+
? '`indexInverted` is deprecated and can not be set together with `indexFilterable`, `indexSearchable` or `indexRangeFilters`'
543543
: '`indexInverted` is deprecated and can not be set together with `indexFilterable` or `indexSearchable`'
544544
);
545545
const errMsg2 = Promise.resolve('`indexSearchable`');
@@ -762,7 +762,7 @@ async function newClassObject(
762762
name: 'stringProp',
763763
tokenization: 'word',
764764
indexFilterable: true,
765-
indexRangeable: (await is1260Promise) ? false : undefined,
765+
indexRangeFilters: (await is1260Promise) ? false : undefined,
766766
indexSearchable: true,
767767
moduleConfig: {
768768
'text2vec-contextionary': {

0 commit comments

Comments
 (0)