Andreas,
Sorry to be slow to respond. At the time you wrote your initial
message, there really was no way of doing what you want to do, without
downloading the solrmarc source code, and creating a custom java method
(or perhaps several methods). Then you would have had to use ant to
build a jar containing all of solrmarc as well as your custom code.
Although creating, compiling and using a custom indexing function is not
too difficult, (and if you want to try to do that I can help you get
things setup to do so) there is now (or rather there soon will be)
another option.
The soon-to-be-released next version of SolrMarc will support a
java-like scripting language. You will be able to define a index
specification like the following in your xxxx_index.properties file:
topic_multi_facet = script(split_topics.bsh), getTopicFacets(653a)
which will load and interpret the script file names split_topics.bsh
from a directory named scripts next to the Generic_VuFind_SolrMarc.jar
file. and then for each record, it would execute the function named
getTopicFacets that you would define in the file split_topic.bsh
As an exercise for testing the capability of the index scripting
functions, I implemented an example that does substantially what you
describe below. The sample script is attached to this e-mail message.
-Bob Haschart