[英]Function for concatenating fields in Solr
Is there way to concatenate two fields values in Solr, eg to sort or group over these concatenated values like http://localhost:8983/solr/select?q=*:*&sort=concat(field1, field2)
? 有没有办法在Solr中串联两个字段值,例如对这些串联值进行排序或分组,例如http://localhost:8983/solr/select?q=*:*&sort=concat(field1, field2)
?
Update: the purpose for concatenating these fields is to allow grouping/collapsing over the concatenated field. 更新:串联这些字段的目的是允许在串联的字段上分组/折叠。
对于排序,结果将相同: &sort=field1 asc, field2 asc
I wish there would be such a function. 我希望会有这样的功能。 There is already jira for that: SOLR-3702 :: String concatenation function . 已经有了jira: SOLR-3702 ::字符串连接函数 。 But not resolved yet.. Feel free to upvote :) 但尚未解决..随时支持:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.