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 Vicky_Dev <vi...@yahoo.co.in> on 2009/11/13 12:23:09 UTC

exclude some fields from copying dynamic fields | schema.xml

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.


Re: exclude some fields from copying dynamic fields | schema.xml

Posted by Lance Norskog <go...@gmail.com>.
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
<vi...@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
>> <vi...@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

Re: exclude some fields from copying dynamic fields | schema.xml

Posted by Vicky_Dev <vi...@yahoo.co.in>.
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
> <vi...@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.


Re: exclude some fields from copying dynamic fields | schema.xml

Posted by Lance Norskog <go...@gmail.com>.
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
<vi...@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