Dear Solr User Group,

I need your help for configuration the solr schema properly. What I would do is:

I have the following field within the schema:

<field name="url" type="string" indexed="true" stored="true"/>

Now I would have the same field value with a constant prefix like:

<field name="wayback_url" type="string" indexed="false" stored="true"/>

And always must be a prefix before the URL value like this: 
http://b-vm-ostasien-egarc.sbb.spk-berlin.de:8080/*/

How can I achieve this?

I tried to setup the following field with a default value:
<field name="wayback_url_prefix" type="string" indexed="false" stored="true" 
default="http://b-vm-ostasien-egarc.sbb.spk-berlin.de:8080/*/"/>

And copied afterwards the fields url  and wayback_url_prefix together into the 
field wayback_url. But this doesn't work because always is only the url value 
within the wayback_url field.

I tried also using the following update processor chain:

<updateRequestProcessorChain name="wayback_prefix">
  <processor class="solr.CloneFieldUpdateProcessorFactory">
    <str name="source">waybayck_url_prefix</str>
    <str name="source">url</str>
    <str name="dest">wayback_url</str>
  </processor>
<processor class="solr.ConcatFieldUpdateProcessorFactory">
    <str name="fieldName">wayback_url</str>
    <str name="delimiter"></str>
  </processor>
<processor class="solr.LogUpdateProcessorFactory" />
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>

But the result is still the same?

Has anyone an idea how can I get me target field?

Many Thanks ,

Best regards

Konrad Eichstädt
Staatsbibliothek zu Berlin
Preußischer Kulturbesitz
Potsdamer Str. 33
10785 Berlin
Informations- und Datenmanagement
IDM II elektronische Ressourcen
Tel: +49 030 266 432222

Reply via email to