mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-24 04:16:10 +01:00
Daniel Siepmann
0716b5a3d2
Do not implement feature with custom code, but use existing feature to create search_abstract field. Also execute DataProcessing in AbstractIndexer, not in TcaTableService, to affect all current available indexers, not only some. Also this is the place to be.
58 lines
1.6 KiB
TypeScript
58 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 != ''
|
|
)
|
|
|
|
mapping {
|
|
CType {
|
|
type = keyword
|
|
}
|
|
}
|
|
}
|
|
|
|
pages {
|
|
indexer = Codappix\SearchCore\Domain\Index\TcaIndexer\PagesIndexer
|
|
|
|
mapping {
|
|
CType {
|
|
type = keyword
|
|
}
|
|
}
|
|
|
|
dataProcessing {
|
|
0 = Codappix\SearchCore\DataProcessing\CopyToProcessor
|
|
0 {
|
|
from = abstract, description, bodytext
|
|
to = search_abstract
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
searching {
|
|
fields = search_title
|
|
facets {
|
|
contentTypes {
|
|
field = CType
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module.tx_searchcore < plugin.tx_searchcore
|