-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDC #323 - Make 'name' string field sortable during typesense schema creation #109
Conversation
f64adf6
to
8fa7e11
Compare
lib/typesense/helper.rb
Outdated
type: 'string', | ||
sort: true | ||
},{ | ||
name: 'name_facet', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to walk back my previous note, I don't think we'll need name_facet
to be sortable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment about my incorrect directions 🙃 . I've also created #323, which can be linked to this PR. Also if you could label this PR with "next release".
@@ -34,6 +34,15 @@ def create | |||
type: 'geopoint', | |||
facet: false, | |||
optional: true | |||
}, { | |||
name: 'name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to make this optional. All records should have a name
attribute, but in the event that one doesn't (due to an import error or something) we don't want to prevent the project from being indexed.
Tested locally and it works! My collection created from this task now has the options to sort on |
baf1344
to
80173b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
In this PR
Per Atlas and performant-software/core-data-cloud#323, allow sorting on the
name
andname_facet
fields.Notes