mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-01 07:16:12 +01:00
Daniel Siepmann
dfb3f897e7
Instead of hardcoding and tight coupling of relation resolving, we now provide a dataprocessor instead. Therefore you need to configure resolving for each indexed type. This resolves #149 and #147.
57 lines
1.6 KiB
TypeScript
57 lines
1.6 KiB
TypeScript
plugin {
|
|
tx_searchcore {
|
|
settings {
|
|
connections {
|
|
elasticsearch {
|
|
host = localhost
|
|
port = 9200
|
|
}
|
|
}
|
|
|
|
indexing {
|
|
tt_content {
|
|
indexer = Codappix\SearchCore\Domain\Index\TcaIndexer
|
|
|
|
additionalWhereClause (
|
|
tt_content.CType NOT IN ('gridelements_pi1', 'list', 'div', 'menu', 'shortcut', 'search', 'login')
|
|
AND (tt_content.bodytext != '' OR tt_content.header != '')
|
|
)
|
|
|
|
mapping {
|
|
CType {
|
|
type = keyword
|
|
}
|
|
}
|
|
|
|
dataProcessing {
|
|
1 = Codappix\SearchCore\DataProcessing\TcaRelationResolvingProcessor
|
|
}
|
|
}
|
|
|
|
pages {
|
|
indexer = Codappix\SearchCore\Domain\Index\TcaIndexer\PagesIndexer
|
|
abstractFields = abstract, description, bodytext
|
|
contentFields = header, bodytext
|
|
|
|
mapping {
|
|
CType {
|
|
type = keyword
|
|
}
|
|
}
|
|
|
|
dataProcessing {
|
|
1 = Codappix\SearchCore\DataProcessing\TcaRelationResolvingProcessor
|
|
}
|
|
}
|
|
}
|
|
|
|
searching {
|
|
fields {
|
|
query = _all
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module.tx_searchcore < plugin.tx_searchcore
|