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

Problems with Index - Products disappear after a day or so #429

Closed
samc2810 opened this issue May 26, 2017 · 3 comments
Closed

Problems with Index - Products disappear after a day or so #429

samc2810 opened this issue May 26, 2017 · 3 comments

Comments

@samc2810
Copy link

Hello Smilelabs,

we are having severe problems with the ES-Indexes right now. The Category and Search gives 0 result after a day. ie. once we reindex the products are visible, but the very next day the category and search dont deliver any products. I assume it has something to do with the "indices_pattern" for the problem doesnt exist one I change the pattern to "idx" but this wont allow me to reindex any more "Catalog Search indexer process unknown error: index_already_exists_exception: already exists". Where does the module store the index-name for the queries?

Is this behaviour known or do you a suggestion as to how I could fix this

Thanx and Cheers
Sam

Preconditions

Magento Version : 2.1.4

ElasticSuite Version : 2.3.5

Environment : Developer

Third party modules : Custom

Steps to reproduce

  1. Reindex the Search
  2. Wait till next morning
@romainruaud
Copy link
Collaborator

Hello.

The indices patterns is only here to ensure unicity of index names during a full reindex. That's why you should not change the pattern to a fixed one, this would prevent you from reindexing.

In fact, the default index pattern should be kept for all usages of the module, except the case where you would have production and staging indexes on the same ES cluster, where the index pattern should be prefixed to avoid collisions.

There is no problem having an index named with a 15 days ago date, since it is always aliased properly, and queried by it's alias from Magento, it could potentially be used "forever" and only using partial updates.

Does it answer your question ?

Please try to fallback to the default ElasticSuite settings for the index naming and let us know if you have more details : How are rebuilt your indexes ? Do you use Magento's builtin "Update on Schedule" indexes ? Or "Update on save" ?

Best regards

@samc2810
Copy link
Author

Hi there
thanks for the reply

its set to "Update on Save". I have set the indices-suffix to default again. Well its been 4 days now the products are still there. Kind of weird

@afoucret afoucret added this to Feature in Release 2.4 May 31, 2017
@romainruaud
Copy link
Collaborator

I consider this one as resolved for now and I close it for our visibility on issues.

Of course, feel free to reopen it if you are still facing problems, I will take a look at it again.

Best regards,

@afoucret afoucret moved this from Feature to Done in Release 2.4 Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Release 2.4
  
Done
Development

No branches or pull requests

2 participants