How to use separated elasticsearch indicies for multi sites?
dzschille opened this issue · 5 comments
Hello, i have a problem with a multi site installation: two websites in one TYPO3 installation, every website has an own page tree. Every website has one search page, with the mksearch plugin, and an own elasticsearch index which has a tx_news configuration. In the news indexer config the root pageTree is set to the root page of the corresponding root page of the websites.
When i search on one of the search pages i get always the results from the first page tree.
I can see that in class.tx_mksearch_action_AbstractSearch the method getSearchIndex() always sets the $indexUid = 1. Where it gets the uid from?
Oh, sorry. It was a configuration error done by me in the plugin. Now i have $indexUid = 2. But i get an empty result while i see in Kibana that there should by many for my search term. I will debug that.
Hi, please keep in mind that the ElasticSearch integration is more of a proof of concept and rather experimental. So there might be bugs. There are not as many features available as for Solr, too. Hope you get it to work nevertheless. Keep us updated if we can help.
@hannesbochmann thanks for the answer. I am surprised that you call the ElasticSearch part of your extension "experimental". It's not mentioned in the docs. Also in the "known problems" section there is written "Die Implementierung für ElasticSearch befindet sich noch in der Entwicklung wodurch noch nicht alle Features verfügbar sind". So it sounds for me stable but with less features. Perhaps you should clarify that in the documentation.
I will go on with debuging and will report back if i found the problem. Thanks for the support offfer!
@hannesbochmann it works now. It was problem of the content. I filter the search by user groups and the content was all mapped to some user groups, but my FE user wasn't in a group. Sorry for stealing your time.
No problem. Glad you got it working.