Giter Club home page Giter Club logo

Comments (13)

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024 1

The lazy image loading was causing the issues. I've addressed this in issue #9823. Please pull the latest changes from the master branch and verify.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

To set up Elasticsearch, follow these steps:

  1. Configure Elasticsearch:
    Use the configuration file from the following link:
    https://github.com/bagisto/bagisto/blob/master/config/elasticsearch.php

  2. Enable Elasticsearch in the Admin Panel:
    Go to "Configure >> Products >> Storefront >> Search Mode" and select "Search Mode => Elastic Search".

  3. Index Products in Elasticsearch:
    Run the following command to index existing products:

    php artisan indexer:index --type=elastic --mode=full

    After the initial setup, indexing will automatically occur during product creation, update, and deletion.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

The image load issue is not related to the Faker package. It might be caused by another problem. Try creating symlinks to the storage directory using the following command:

php artisan storage:link

from bagisto.

plyaskin avatar plyaskin commented on September 23, 2024

To set up Elasticsearch, follow these steps:

  1. Configure Elasticsearch:
    Use the configuration file from the following link:
    https://github.com/bagisto/bagisto/blob/master/config/elasticsearch.php

  2. Enable Elasticsearch in the Admin Panel:
    Go to "Configure >> Products >> Storefront >> Search Mode" and select "Search Mode => Elastic Search".

  3. Index Products in Elasticsearch:
    Run the following command to index existing products:

    php artisan indexer:index --type=elastic --mode=full

    After the initial setup, indexing will automatically occur during product creation, update, and deletion.

Could you explain how this search engine can help with the database and images?

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

As mentioned in my previous reply, if you have a large catalog, you should use Elasticsearch. With Elasticsearch, products are filtered using Elasticsearch rather than the database. The schema for storing product information is well normalized, and pulling information from multiple tables can cause performance issues. This is why we provided support for Elasticsearch. In the future, we will remove database support for products on the frontend, allowing only Elasticsearch or OpenSearch.

Regarding the image issue, it is not related to the items. It's possible that files have been removed from the storage folder, or there may be another issue. Please check the paths of the broken images to see if the files exist in the storage folder.

from bagisto.

plyaskin avatar plyaskin commented on September 23, 2024

As mentioned in my previous reply, if you have a large catalog, you should use Elasticsearch. With Elasticsearch, products are filtered using Elasticsearch rather than the database. The schema for storing product information is well normalized, and pulling information from multiple tables can cause performance issues. This is why we provided support for Elasticsearch. In the future, we will remove database support for products on the frontend, allowing only Elasticsearch or OpenSearch.

Regarding the image issue, it is not related to the items. It's possible that files have been removed from the storage folder, or there may be another issue. Please check the paths of the broken images to see if the files exist in the storage folder.

The files are in the storage because I didn't touch them and they appear when the items are less in DB.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

Can you share you instance URL so that I can check

from bagisto.

plyaskin avatar plyaskin commented on September 23, 2024

Unfortunately, I have already removed it.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

No problem, let me try to reproduce the issue on my end by creating 50,000 products.

from bagisto.

plyaskin avatar plyaskin commented on September 23, 2024

No problem, let me try to reproduce the issue on my end by creating 50,000 products.

Please check about 1 million products also.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

We have already tested with more than 1 million and elastic search.

from bagisto.

plyaskin avatar plyaskin commented on September 23, 2024

We have already tested with more than 1 million and elastic search.

Could you let me know how to use the Elastic?
This Article isn't applicable.

from bagisto.

jitendra-webkul avatar jitendra-webkul commented on September 23, 2024

You can follow the documentation provided here:

https://devdocs.bagisto.com/2.x/advanced/indexing-products-to-elasticsearch.html#indexing

The images issue has already been fixed, so I am closing this issue.

from bagisto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.