Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

[TASK] Improve language overlay handling for records #11

Closed
wants to merge 2 commits into from
Closed

[TASK] Improve language overlay handling for records #11

wants to merge 2 commits into from

Commits on Oct 28, 2015

  1. [TASK] Improve language overlay handling for records

    Solr record indexer does not handle language overlay efficiently and does not support content fallback.
    
    Firsts, the cache for language information is not kept across instances of the indexer. Each new record
    requires a new instance of the indexer but language information does not change between creation of
    indexer instances. Language information is obtained by instantiating TSFE and parsing TS templates.
    This can take 0.5-2 seconds depending on the amount of TypoScript. It makes sense to cache this
    information statically. It helps to shorten indexing times dramatically.
    
    Secondly, if there is content overlay, than records like news will be properly overlayed by the
    corrsponding news plugin (i.e. you can see de_DE record instead of de_CH if de_CH does not exist) but
    solr indexer will only give a record in the default language in such case, which is unexpected result
    for the customer.
    
    This commit fixes both issues. It is implemented as a single change because it is highly connected
    code.
    Dmitry Dulepov committed Oct 28, 2015
    Configuration menu
    Copy the full SHA
    2f6273d View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2015

  1. [BUGFIX] TSFE may have been initialized with wrong language id

    $GLOBALS[TSFE] needs to be set up correctly for each language when indexing records.
    However Classes/IndexQueue/Indexer.php sets it to the current language only in certain
    cases.
    Dmitry Dulepov committed Nov 17, 2015
    Configuration menu
    Copy the full SHA
    6634f4b View commit details
    Browse the repository at this point in the history