lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: exclude some fields from copying dynamic fields | schema.xml
Date Mon, 16 Nov 2009 23:52:34 GMT
Oh well. There is no direct feature for controlling what is copied.

If you use the DataImportHandler, you can include Java plugins or
Javascript/JRuby/Groovy code to do the copying.

On Sun, Nov 15, 2009 at 9:37 PM, Vicky_Dev
<vikrantv_shirbhate@yahoo.co.in> wrote:
>
> Thanks for response
>
> Defining field is not working :(
>
> Is there any way to stop copy task for particular set of values
>
> Thanks
> ~Vikrant
>
>
>
> Lance Norskog-2 wrote:
>>
>> There is no direct way.
>>
>> Let's say you have a "nocopy_s" and you do not want a copy
>> "nocopy_str_s". This might work: declare "nocopy_str_s" as a field and
>> make it not indexed and not stored. I don't know if this will work.
>>
>> It requires two overrides to work: 1) that declaring a field name that
>> matches a wildcard will override the default wildcard rule, and 2)
>> that "stored=false indexed=false" works.
>>
>> On Fri, Nov 13, 2009 at 3:23 AM, Vicky_Dev
>> <vikrantv_shirbhate@yahoo.co.in> wrote:
>>>
>>> Hi,
>>> we are using the following entry in schema.xml to make a copy of one type
>>> of
>>> dynamic field to another :
>>> <copyField source="*_s" dest="*_str_s" />
>>>
>>> Is it possible to exclude some fields from copying.
>>>
>>> We are using Solr1.3
>>>
>>> ~Vikrant
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/exclude-some-fields-from-copying-dynamic-fields-%7C-schema.xml-tp26335109p26335109.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Lance Norskog
>> goksron@gmail.com
>>
>>
>
> --
> View this message in context: http://old.nabble.com/exclude-some-fields-from-copying-dynamic-fields-%7C-schema.xml-tp26335109p26367099.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message