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

not work if use Laravel Scout MySQL Driver #22

Closed
olipiskandar opened this issue Dec 7, 2017 · 2 comments
Closed

not work if use Laravel Scout MySQL Driver #22

olipiskandar opened this issue Dec 7, 2017 · 2 comments

Comments

@olipiskandar
Copy link

olipiskandar commented Dec 7, 2017

I get the error as below when I combine it with Laravel Scout MySQL Driver
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'page_visits' in 'where clause' (SQL: select count(*) as aggregate from artikels where (idLIKE %a% ORjenisLIKE %a% ORjudulLIKE %a% ORslugLIKE %a% ORthumbnailLIKE %a% ORdeskripsiLIKE %a% ORcategories_idLIKE %a% ORcontentLIKE %a% ORsourceLIKE %a% ORstatusLIKE %a% ORusers_idLIKE %a% ORlockedLIKE %a% ORcreated_atLIKE %a% ORupdated_atLIKE %a% ORpage_visitsLIKE %a% ORpage_visits_24hLIKE %a% ORpage_visits_7dLIKE %a% ORpage_visits_14dLIKE %a% ORpage_visits_formattedLIKE %a% ORpage_visits_24h_formattedLIKE %a% ORpage_visits_7d_formattedLIKE %a% ORpage_visits_14d_formatted LIKE %a%))

@cyrildewit
Copy link
Owner

Could you provide the code that makes this error appear?

Can you create a getXxxxAttribute in one of your models and append it. Also comment out or remove everthing of this package from that model. If this error still appears, then it's something else.


I'm also working on a new version that doesn't appends all those attributes to your models. In the new version it will only add some methods to your model that you can call. This gives you the option if you wan't to append it. It's kinda messy to have 14 attributes 🤔.

@olipiskandar
Copy link
Author

at last..
migrate to algolia.
everything works

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

No branches or pull requests

2 participants