From f64adf62fdfb268ef94b2a5a0ec420e67441e883 Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Thu, 5 Dec 2024 16:32:01 -0500 Subject: [PATCH] Make 'name' string field sortable during typesnse schema creation --- lib/typesense/helper.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/typesense/helper.rb b/lib/typesense/helper.rb index a8880fe..0143f59 100644 --- a/lib/typesense/helper.rb +++ b/lib/typesense/helper.rb @@ -34,6 +34,15 @@ def create type: 'geopoint', facet: false, optional: true + }, { + name: 'name', + type: 'string', + sort: true + },{ + name: 'name_facet', + type: 'string', + sort: true, + facet: true }, { name: '.*_facet', type: 'auto',