mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-24 21:16:11 +01:00
Daniel Siepmann
218d8d7289
Allows integrators to configure which fields should be used to produce field "content" for indexed pages. Before only "bodytext" was used. This is now configurable and "header" was added to defaults. Resolves: #134
49 lines
1.3 KiB
TypeScript
49 lines
1.3 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
|
|
}
|
|
}
|
|
}
|
|
|
|
pages {
|
|
indexer = Codappix\SearchCore\Domain\Index\TcaIndexer\PagesIndexer
|
|
abstractFields = abstract, description, bodytext
|
|
contentFields = header, bodytext
|
|
|
|
mapping {
|
|
CType {
|
|
type = keyword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
searching {
|
|
fields {
|
|
query = _all
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module.tx_searchcore < plugin.tx_searchcore
|