Skip to content

Instantly share code, notes, and snippets.

@sorenmalling
Created December 17, 2014 15:10
Show Gist options
  • Select an option

  • Save sorenmalling/07004fe0d84a70c5a793 to your computer and use it in GitHub Desktop.

Select an option

Save sorenmalling/07004fe0d84a70c5a793 to your computer and use it in GitHub Desktop.
plugin.tx_solr.index.queue {
news.fields {
tags_textM = SOLR_MULTIVALUE
tags_textM {
cObject = CONTENT
cObject {
table = pages
select {
uidInList = this
pidInList = 0
selectFields = sys_category.*
join = sys_category_record_mm ON pages.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
where = sys_category_record_mm.tablenames = 'pages' AND sys_category.pid = PID_OF_THE_CATEGORY_FOLDER
}
renderObj = COA
renderObj {
10 = TEXT
10.field = title
10.wrap = |,
}
}
separator = ,
removeEmptyValues = 1
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment