Open waltermulder opened 1 year ago
@waltermulder Thanks for reporting that issue.
Please provide more information:
Also like on our issue template
It seems you are not using plugin.tx_solr.index.queue.[indexConfig].additionalPageIds setting.
Additional information: The typoscript config for the records is:
plugin.tx_solr {
...
index {
...
queue {
products = 1
products {
table = tx_nkproducts_domain_model_product
additionalPageIds = 33
additionalWhereClause = {$plugin.tx_solr.index.queue.products.additionalWhereClause}
}
}
}
}
Part of the file structure:
I expect the first record to be indexed after running the index quee in both languages. Now the first record (which is the last updated record) is not indexed in the de language. The remaining records are indexed correctly.
When I run the index process, all items are indexed (default language and translated) except from the first item the translated record is skipped. I have two solar cores (website_nl and website_de). When I debug the solr connections the rootPageId of the first translated item is 32. For all the other items it is 1000. Debugging ApacheSolrForTypo3\Solr\Domain\Index\Queue\RecordMonitor\Helper\RootPageResolver has the method getRootPageId. The $GLOBALS['TSFE']->rootLine is empty for the first record. The fallback kicks in and resolves to id 32 for the translated record.
To Reproduce create a folder outside the site structure and create some records with translations. Empty Index Queue and run index.
Used versions:
In extension configuratio basic.useConfigurationTrackRecordsOutsideSiteroot is checked.
Site Configuration (config.yaml):