-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/search #6
Feat/search #6
Conversation
目前完成的内容:
待完成的内容
|
func (i *SearchIndex) Scan(value interface{}) error { return nil } | ||
func (i SearchIndex) Value() (driver.Value, error) { return nil, nil } | ||
func (i SearchIndex) GormDataType() string { return "tsvector" } |
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.
为啥一个接收器是指针,另外几个不是
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.
https://gorm.io/docs/data_types.html 因为文档如此 抄的(
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.
行吧,IDE和lint如果没有警告的话就这样了
util/fenci.go
Outdated
|
||
var seg gse.Segmenter | ||
|
||
func Fenci(src string) []string { |
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.
不要叫这个名字吧
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.
那叫 SegWord
可以吗
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.
可以
No description provided.