1

I am using Lucid Works to create index of solr.

Source : Database

I have two similar columns in my database, Party1, Party2.

I am using a SQL Statement like this;

SELECT top 1000000 OrderId as id
, Party1 as PartyNameFirst
, Party2 as PartyNameLast
FROM dbo.vw_SolrRPSTRD

I wanted to get both Party as a single fieled, seperated by ",". I know it is deals with multivalued field and splitby function. But unable to get sample.

Please guide me in this.

Thanks In Advance....

4

1 に答える 1

3

SQL Server を使用しているようです。SQL 自体でそれらを連結し、単一値の Solr フィールドを保持できます。

SELECT top 1000000 OrderId as id, 
Party1 + ', ' + Party2 as PartyName
FROM dbo.vw_SolrRPSTRD
于 2013-07-25T02:49:50.497 に答える