You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Alistair Young <al...@uhi.ac.uk> on 2015/06/23 14:45:30 UTC
copyField based on value of another field
Hi folks,
is it possible to copyField only if another field has a certain value? e.g.
copyField 'dc.subject' to 'image_suggestions' only if rdf http://www.nsdl.org/ontologies/relationships#isInImageBank is true
thanks,
Alistair
--
mov eax,1
mov ebx,0
int 80h
Re: copyField based on value of another field
Posted by Alessandro Benedetti <be...@gmail.com>.
You should work at the UpdateProcessor level :
https://wiki.apache.org/solr/UpdateRequestProcessor#Implementing_a_conditional_copyField
This should give you some hint.
Cheers
2015-06-23 13:45 GMT+01:00 Alistair Young <al...@uhi.ac.uk>:
> Hi folks,
>
> is it possible to copyField only if another field has a certain value? e.g.
>
> copyField 'dc.subject' to 'image_suggestions' only if rdf
> http://www.nsdl.org/ontologies/relationships#isInImageBank is true
>
> thanks,
>
> Alistair
>
> --
> mov eax,1
> mov ebx,0
> int 80h
>
--
--------------------------
Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti
"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"
William Blake - Songs of Experience -1794 England