Skip to content

Commit

Permalink
Make 'name' string field sortable during typesnse schema creation
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 5, 2024
1 parent 9c8eef0 commit f64adf6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/typesense/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f64adf6

Please sign in to comment.