Reputation: 195
Is there way to concatenate two fields values in Solr, e.g. to sort or group over these concatenated values like 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.
Upvotes: 4
Views: 2041
Reputation: 1042
I wish there would be such a function. There is already jira for that: SOLR-3702 :: String concatenation function. But not resolved yet.. Feel free to upvote :)
Upvotes: 0
Reputation: 15789
for sorting, this would have the same result: &sort=field1 asc, field2 asc
Upvotes: 2