vuestorefront / magento2-vsbridge-indexer

This is official Vue Storefront, native, Magento2 indexer
https://vuestorefront.io
MIT License
69 stars 89 forks source link

bin/magento indexer:reindex vsbridge_product_category gives no response #184

Open mmularski opened 4 years ago

mmularski commented 4 years ago

If you run php bin/magento indexer:info command, there will be a list of available indexers:

.
.
.
vsbridge_product_indexer                 Vsbridge Product Indexer
vsbridge_category_indexer                Vsbridge Category Indexer
vsbridge_attribute_indexer               Vsbridge Attributes Indexer
vsbridge_product_category                Vsbridge Product Category Indexer
vsbridge_cms_block_indexer               Vsbridge Cms Block Indexer
vsbridge_cms_page_indexer                Vsbridge Cms Page Indexer
vsbridge_review_indexer                  Vsbridge Review Indexer
vsbridge_taxrule_indexer                 Vsbridge Tax Rule Indexer
.
.
.

but if I type

root@58e2162df79d:/var/www/html# php bin/magento indexer:reindex vsbridge_product_category
root@58e2162df79d:/var/www/html# 

there is no response which causes confusion

IMHO this indexer should be cut off from php bin/magento indexer:info response

edit: also in php bin/magento indexer:reindex supported types hint

afirlejczyk commented 4 years ago

Hi @mmularski, Strange it worked for me.. I didn't modify Magento indexer:reindex command at all. If you take a look into Magento command, you will notice Magento only execute "valid" indexers. So If you don't see any message that means your indexer has invalid status and wasn't executed.

app@4da414b8145a:~/html$ php bin/magento indexer:reindex vsbridge_attribute_indexer
Vsbridge Attributes Indexer index has been rebuilt successfully in 00:00:00

It's more like a bug in Magento Core, they should show us some information about this.

mmularski commented 4 years ago

problem is only with vsbridge_product_category because as I assumed it is only "On Schedule" partial indexing indice.

afirlejczyk commented 4 years ago

Yes, I just check this. It was done by purpose. It's only used for partial indexing - and is usefull if "Vsbridge Product Indexer" is in "Save Mode"

Please run reindex for "Vsbridge Product Indexer" instead.

I probably should hide this index in Magento Panel / show some information why you can't run this index.

mmularski commented 4 years ago

Yes. I just wanted to let you know because the client informed us that it is confusing and "probably issue", so I think it is worth to consider how to hide it accurately :)

afirlejczyk commented 4 years ago

OK, I get it. :) Yes it should be hidden in Magento Panel, just didn't have time to work on this.

afirlejczyk commented 4 years ago

PR will be more than welcome!

mmularski commented 4 years ago

Soon I will try to find some time :)

afirlejczyk commented 4 years ago

Indexer will be now hide in magento backend #204

afirlejczyk commented 4 years ago

TODO:

afirlejczyk commented 4 years ago

I plan to remove this "vsbridge_product_category" indexer all together.

pcartel commented 3 years ago
Screen Shot

My menu doesn't show any of the categories but in the search bar I can see categories and brands really weird. Probably a small issue but if you could have a look and possibly point me in the right direction it would help tremendously. On the backend of magento 2 it also says category needs reindex as well tried and nothing