TypesenseBundle icon indicating copy to clipboard operation
TypesenseBundle copied to clipboard

Add support to enable sorting on string column

Open developerEinpix opened this issue 2 years ago • 1 comments

developerEinpix avatar Mar 14 '23 10:03 developerEinpix

Hello @developerEinpix thank you for this PR.

I don't see the option "sort" that you propose in Typesense documentation : https://typesense.org/docs/0.25.1/api/collections.html#schema-parameters

But this PR show that we could add and use other parameters for each field of a collection 👍

Declaring a field as optional
A field can be declared as optional by setting "optional": true.

Declaring a field as un-indexed
You can set a field as un-indexed by setting "index": false. This is useful when used along with [auto schema detection](https://typesense.org/docs/0.25.1/api/collections.html#with-auto-schema-detection) and you need to [exclude certain fields from indexing](https://typesense.org/docs/0.25.1/api/collections.html#indexing-all-but-some-fields).

Configuring language-specific tokenization:
The default tokenizer that Typesense uses works for most languages, especially ones that separate words by spaces. However, based on feedback from users, we've added locale specific customizations for the following languages. You can enable these customizations for a field, by setting a field called locale inside the field definition. Eg: {name: 'title', type: 'string', locale: 'ja'} will enable the Japanese locale customizations for the field named title.

npotier avatar Oct 10 '23 07:10 npotier