Skip to content

Commit 0325b7d

Browse files
committed
feat(field): add tokens_separators and symbols_to_index to field-level
1 parent 19bc04d commit 0325b7d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/typesense/types/collection.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class CollectionFieldSchema(typing.Generic[_TType], typing.TypedDict, total=Fals
4747
optional (bool): Whether the field is optional.
4848
infix (bool): Whether the field is an infix.
4949
stem (bool): Whether the field is a stem.
50+
symbols_to_index (list[str]): The symbols to index
51+
token_separators (list[str]): The token separators.
5052
locale (Locales): The locale of the field.
5153
sort (bool): Whether the field is sortable.
5254
store (bool): Whether the field is stored.
@@ -65,6 +67,8 @@ class CollectionFieldSchema(typing.Generic[_TType], typing.TypedDict, total=Fals
6567
locale: typing.NotRequired[Locales]
6668
sort: typing.NotRequired[bool]
6769
store: typing.NotRequired[bool]
70+
symbols_to_index: typing.NotRequired[typing.List[str]]
71+
token_separators: typing.NotRequired[typing.List[str]]
6872
num_dim: typing.NotRequired[float]
6973
range_index: typing.NotRequired[bool]
7074
index: typing.NotRequired[bool]
@@ -84,6 +88,8 @@ class RegularCollectionFieldSchema(CollectionFieldSchema[_FieldType]):
8488
stem (bool): Whether the field is a stem.
8589
locale (Locales): The locale of the field.
8690
sort (bool): Whether the field is sortable.
91+
symbols_to_index (list[str]): The symbols to index
92+
token_separators (list[str]): The token separators.
8793
store (bool): Whether the field is stored.
8894
num_dim (float): The number of dimensions.
8995
range_index (bool): Whether the field is a range index.
@@ -102,6 +108,8 @@ class ReferenceCollectionFieldSchema(CollectionFieldSchema[_ReferenceFieldType])
102108
facet (bool): Whether the field is a facet.
103109
optional (bool): Whether the field is optional.
104110
infix (bool): Whether the field is an infix.
111+
symbols_to_index (list[str]): The symbols to index
112+
token_separators (list[str]): The token separators.
105113
stem (bool): Whether the field is a stem.
106114
locale (Locales): The locale of the field.
107115
sort (bool): Whether the field is sortable.

0 commit comments

Comments
 (0)