Skip to content
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

cool-search模糊搜索问题 #156

Open
shoppinglink opened this issue Dec 25, 2023 · 0 comments
Open

cool-search模糊搜索问题 #156

shoppinglink opened this issue Dec 25, 2023 · 0 comments

Comments

@shoppinglink
Copy link

我使用cool-search正确设置了fieldEq: ['title'],keyWordLikeFields: ['title'],模糊搜索的时候,title只能做到完全匹配(如:title内容为abc,搜索框要输入abc才能搜索到结果,输入a则查找不到结果),而同样的配置cool-search-key是可以正常模糊搜索的,请问不重写curd能实现模糊搜索吗?
我也有尝试过重写curd,并在@entity('link', {database:'test'})指定了数据库,可是执行的时候,提示test.link表不存在(默认数据库是cool),请问我应该在哪里再次指定数据库呢?(我把link表拷贝到cool数据库就正常了)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant