索引搜索爬虫配置 - Typo3 6.2

时间:2015-02-02 10:49:39

标签: typo3 typo3-6.2.x

我有一个自定义数据库表。我想索引表的记录 语言特定。我创建了一个名为“customindex”的爬虫配置 并创建了一个名为“Data Indexer”的索引器配置。

在我的网站上,有两种语言:0 - Deutch(默认)和1-英语。

但是在前端,我可以看到默认的Deutch和英文记录 语言搜索。我已经调查了这个,我看到了一个 配置“tx_crawler.crawlerCfg”。 ( http://docs.typo3.org/typo3cms/extensions/crawler/ExtCrawler/Configuration/PageTsconfigReference(txCrawlercrawlercfg)/Index.html)。 我不明白这里的关键参数“paramSets。[key]”。什么是 这里的“钥匙”实际上是什么?是扩展密钥还是爬虫 配置名称?

我写了这样的Page TS配置;

tx_crawler.crawlerCfg.paramSets.key =
&tx_myext_myext[uid]=[_TABLE:tx_myext;_PID:22;_WHERE:AND
(sys_language_uid=0)]
tx_crawler.crawlerCfg.paramSets.key {
   baseUrl         = http://www.example.com/
   cHash           = 1
   pidsOnly        = 22
   procInstrFilter = tx_indexedsearch_reindex
}

# A second tx_tour configuration for another language with language ID 1
tx_crawler.crawlerCfg.paramSets.key =
&tx_myext_myext[uid]=[_TABLE:tx_myext;_PID:22;_WHERE:AND
(sys_language_uid=1)]&L=1
tx_crawler.crawlerCfg.paramSets.key {
   baseUrl         = http://www.example.com/
   cHash           = 1
   pidsOnly        = 22
   procInstrFilter = tx_indexedsearch_reindex
}

但我不知道那是什么“关键”(tx_crawler.crawlerCfg.paramSets.key) 这里表示。

你们能帮助我找到这里的“钥匙”吗?

1 个答案:

答案 0 :(得分:0)

"键"将是我们需要用作爬虫配置的任何变量名。