简体   繁体   English

在Solr中串联字段的函数

[英]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.

相关问题 连接 function 名称 reactjs - concatenating function names reactjs 通过函数调用连接DataFrame - Concatenating DataFrames through function calls SOLR 使用 CONCAT 函数查询丢失了字段中的一些单词 - 如何使其处理所有单词? - SOLR loses some of the words from the fields with CONCAT function query - how to make it process all words? solr:使用函数创建过滤器查询 - solr: Create filter query with a function 为什么我的字符串变量没有在Powershell函数中串联? - Why is my string variable not concatenating in my Powershell function? 将函数应用于不同数据帧的相似命名列并连接结果 - Applying a Function to Similarly Named Columns of Different Dataframes and Concatenating Result 是否在 C 未定义行为中将任意数量的字符串与嵌套函数调用连接起来? - Is concatenating arbitrary number of strings with nested function calls in C undefined behavior? Powershell,函数在连接字符串(参数)时添加尾随空格 - Powershell, function add trailing space while concatenating string (parameters) 如何在openerp中计算函数字段和db字段 - how calculate function fields and db fields in openerp 函数返回的多个值与多个变量连接而不使用临时变量 - Concatenating multiple values returned by function with multiple variables without using temporary variables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM