Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr >> mail # user >> copyField: multivalued field to joined singlevalue field


Copy link to this message
-
Re: copyField: multivalued field to joined singlevalue field

: > I want to copy all data from a multivalued field joined together in a single
: > valued field.
: >
: > Is there any opportunity to do this by using solr-standards?
:
: There is not currently, but it certainly makes sense.

Part of it has just recently been commited to trunk actually...

https://issues.apache.org/jira/browse/SOLR-2802

https://builds.apache.org/job/Solr-trunk/javadoc/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.html

...with that, it's easy to say "anytime multiple values are found for a
single valued string field, join them together with a comma".

the only piece that's missing is to "copy" from a source field in an
(earlier) UpdateProcessor.  

Theres a patch for this in SOLR-2599 but i haven't had a chance to look at
it yet.
-Hoss