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

Index Categories in a separate index #11

Open
real34 opened this issue Sep 26, 2019 · 0 comments
Open

Index Categories in a separate index #11

real34 opened this issue Sep 26, 2019 · 0 comments

Comments

@real34
Copy link
Member

real34 commented Sep 26, 2019

As of ElasticSearch 6.0, it is not recommended/possible to have heterogeneous document types in the same index.

That is why ElasticSuite is now storing documents in different indexes (see https://github.com/Smile-SA/elasticsuite/blob/41c11b7648455deed8034b09cf3c10b3b2529eb8/src/module-elasticsuite-catalog/Model/Category/Indexer/Fulltext.php#L80).

We have decided to only index Products as a quick workaround to this change (see ec65c9d), and this issue is about reimplementing support for Categories indexation in a different index.

It is similar to #8 and already has mappings/logic implemented (

protected function _getSearchableEntities($storeId, $ids = null, $lastId = 0)
).

It would also be good to think (while doing #7?) about index management flexibility to improve this over time and support more use cases.

Notes

Do not forget to reimplement partial reindexing removed in d5bf5d4 and observers from \Smile_ElasticSearch_Model_Observer

References

real34 added a commit that referenced this issue Oct 29, 2019
since it will be implemented as part of #11
real34 added a commit that referenced this issue Oct 29, 2019
since it will be reimplemented in #11
real34 added a commit that referenced this issue Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant