lunarphp / livewire-starter-kit

Demonstration store for Lunar
https://docs.lunarphp.io/core/starter-kits.html
155 stars 51 forks source link

Search Issue #34

Closed jyrjsinhatfolium closed 2 years ago

jyrjsinhatfolium commented 2 years ago

hello,

i have installed this demo-store as per instructions , my project has setup completely. i served it using php artisan serve at http:127.0.0.1:8000. btw i am using laravel version 8.83.6.

but when i go to dashboard and try to open products the following error comes.

cURL error 7: Failed to connect to 127.0.0.1 port 7700: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:7700/indexes/demostore_products/search (View: C:\xampp\htdocs\demo-store\vendor\getcandy\admin\resources\views\livewire\pages\products\index.blade.php)

as well as when i try to seed data on command line using php artisan db:seed , the following error shows.

cURL error 7: Failed to connect to 127.0.0.1 port 7700: Connection refused (see h ttps://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:7700/indexes/demostore_collections/documents?primaryKey=id

Any suggestion would greatly be appreciated.

thanks.

glennjacobs commented 2 years ago

It sounds very much like you do not have Meilisearch running correctly. You can change to use the database Laravel Scout driver instead if you wish.

jyrjsinhatfolium commented 2 years ago

actually i am using mysql database but that error comes often.

glennjacobs commented 2 years ago

actually i am using mysql database but that error comes often.

What Laravel Scout driver do you have configured?

jyrjsinhatfolium commented 2 years ago

is it necessary to use meilisearch ? because i found it difficult to install in windows.

glennjacobs commented 2 years ago

No, you can just use the database, but the searching won't be as good. The demo store is configured to use Meilisearch as default.

See https://docs.getcandy.io/quickstart.html

Try setting SCOUT_DRIVER=mysql in your .env file.

jyrjsinhatfolium commented 2 years ago

Thanks @glennjacobs , I followed the steps of mysql search configuations from here and it worked fine!