[TYPO3-Solr] indexqueue problems with multilang

Heiko Kromm | Paints h.kromm at paints.de
Thu Dec 1 15:52:07 CET 2011


Hi list, 

I have a strange behaviour while indexing a custom table with the indexqueue. 
My website has 2 languages (german|0 and english|1) and a installed news-extension. 
In my solr-setup I tell the indexqueue to index the tx_news_domain_model_news table. 

plugin.tx_solr { 
index { 
queue { 
tx_news_domain_model_news = 1 
tx_news_domain_model_news { 
... my mappings here ... 
} 
} 
} 

This works fine for the german records but the english records are indexed twice. 
If I debug the solr results, there is one result with the correct english data and uid of the localized record. 
The second english result has the same english content, but the uid of the parent (german) data. 

I can reproduce this behaviour, if I empty the solr-index. 
Then I open the german record and change something. 
After a while the indexer does it's job and the german and the localized english record is indexed correctly. 
Now I open the english record and change something. 
Now the indexer creates the duplicate entry with the parent uid. 

Any ideas on this? 

Regards 
Heiko 


More information about the TYPO3-project-solr mailing list