plugin.tx_indexedsearch {
    view {
        partialRootPaths.214 = EXT:t3template/Resources/Private/IndexedSearch/Partials/
        templateRootPaths.214 = EXT:t3template/Resources/Private/IndexedSearch/Templates/
    }

    settings {
        targetPid = {$const.global.searchPid}
        rootPidList = {$const.global.rootPid}

        # Default: 180
        results.markupSW_summaryMax = 120
    }
}

lib.search = RECORDS
lib.search {
    tables = tt_content
    source = 70
    dontCheckPid = 1
    conf.tt_content {
        stdWrap.dataWrap = |
    }
}

/*
[page["uid"] == 25]
lib.search >
[END]
*/

lib.quicksearch = FLUIDTEMPLATE
lib.quicksearch {
    file = EXT:t3template/Resources/Private/IndexedSearch/Templates/Searchoverlay.html
    settings.targetPid = {$const.global.searchPid}
}

[request.getNormalizedParams().getHttpHost() == 'www.weytec.com' || request.getNormalizedParams().getHttpHost() == 'www.weytec.com.local']
    plugin.tx_indexedsearch {
        settings {
            targetPid = {$const.com.searchPid}
            rootPidList = {$const.com.rootPid}
        }
    }
    lib.quicksearch.settings.targetPid = {$const.com.searchPid}
[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.de' || request.getNormalizedParams().getHttpHost() == 'www.weytec.de.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.de.searchPid}
#            rootPidList = {$const.de.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.de.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ch' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ch.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.ch.searchPid}
#            rootPidList = {$const.ch.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.ch.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.fr' || request.getNormalizedParams().getHttpHost() == 'www.weytec.fr.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.fr.searchPid}
#            rootPidList = {$const.fr.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.fr.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.it' || request.getNormalizedParams().getHttpHost() == 'www.weytec.it.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.it.searchPid}
#            rootPidList = {$const.it.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.it.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ru' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ru.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.ru.searchPid}
#            rootPidList = {$const.ru.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.ru.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.us' || request.getNormalizedParams().getHttpHost() == 'www.weytec.us.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.us.searchPid}
#            rootPidList = {$const.us.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.us.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk' || request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.co.uk.searchPid}
#            rootPidList = {$const.co.uk.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.co.uk.searchPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.asia' || request.getNormalizedParams().getHttpHost() == 'www.weytec.asia.local']
#    plugin.tx_indexedsearch {
#        settings {
#            targetPid = {$const.asia.searchPid}
#            rootPidList = {$const.asia.rootPid}
#        }
#    }
#    lib.quicksearch.settings.targetPid = {$const.asia.searchPid}
#[END]
