You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2017/05/21 22:14:05 UTC
[jira] [Closed] (SOLR-1816) Easy ability to add static mulit-valued
fields
[ https://issues.apache.org/jira/browse/SOLR-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl closed SOLR-1816.
-----------------------------
Resolution: Not A Problem
Closing ancient issue as not a problem. If anyone believe this is still a need, please re-open.
> Easy ability to add static mulit-valued fields
> ----------------------------------------------
>
> Key: SOLR-1816
> URL: https://issues.apache.org/jira/browse/SOLR-1816
> Project: Solr
> Issue Type: Improvement
> Components: contrib - DataImportHandler
> Affects Versions: 1.4
> Reporter: Robert Zotter
> Priority: Minor
>
> To add a static value one must use a the TemplateTransformer but there is no way to specify multiple values using this method.
> The only way that I know of that can accomplish this is by using a RegexTransformer and specifying the the static field as part of the query.
> <document>
> <entity name="foo"
> transformer="RegexTransformer"
> query="select *, 'multiValueA, multiValueB' values from foos">
> <field column="multiValueField" sourceColName="values" splitBy=","/>
> ...
> </entity>
> </document>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org