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 wojtekpia <wo...@hotmail.com> on 2008/08/29 22:01:04 UTC
Creating dynamic fields with DataImportHandler
I have a custom row transformer that I'm using with the DataImportHandler.
When I try to create a dynamic field from my transformer, it doesn't get
created.
If I do exactly the same thing from my dataimport handler config file, it
works as expected.
Has anyone experienced this? I'm using a nightly build from about 3 weeks
ago. I realize there were some fixes done to the DataImportHandler since
then, but if I understand them correctly, they seem unrelated to my issue
(http://www.nabble.com/localsolr-and-dataimport-problems-to18849983.html#a18854923).
--
View this message in context: http://www.nabble.com/Creating-dynamic-fields-with-DataImportHandler-tp19226532p19226532.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Creating dynamic fields with DataImportHandler
Posted by wojtekpia <wo...@hotmail.com>.
I have created SOLR-742:
http://issues.apache.org/jira/browse/SOLR-742
For my case, I don't know the field name ahead of time.
Shalin Shekhar Mangar wrote:
>
> Yes, sounds like a bug. Do you mind opening a jira issue for this?
>
> A simple workaround is to add the field name (if you know it beforehand)
> to
> your data config and use the Transformer to set the value. If you don't
> know
> the field name before hand then this will not work for you.
>
> On Sat, Aug 30, 2008 at 1:31 AM, wojtekpia <wo...@hotmail.com> wrote:
>
>>
>> I have a custom row transformer that I'm using with the
>> DataImportHandler.
>> When I try to create a dynamic field from my transformer, it doesn't get
>> created.
>>
>> If I do exactly the same thing from my dataimport handler config file, it
>> works as expected.
>>
>> Has anyone experienced this? I'm using a nightly build from about 3 weeks
>> ago. I realize there were some fixes done to the DataImportHandler since
>> then, but if I understand them correctly, they seem unrelated to my issue
>> (
>> http://www.nabble.com/localsolr-and-dataimport-problems-to18849983.html#a18854923
>> ).
>> --
>> View this message in context:
>> http://www.nabble.com/Creating-dynamic-fields-with-DataImportHandler-tp19226532p19226532.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>
>
--
View this message in context: http://www.nabble.com/Creating-dynamic-fields-with-DataImportHandler-tp19226532p19227919.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Creating dynamic fields with DataImportHandler
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Yes, sounds like a bug. Do you mind opening a jira issue for this?
A simple workaround is to add the field name (if you know it beforehand) to
your data config and use the Transformer to set the value. If you don't know
the field name before hand then this will not work for you.
On Sat, Aug 30, 2008 at 1:31 AM, wojtekpia <wo...@hotmail.com> wrote:
>
> I have a custom row transformer that I'm using with the DataImportHandler.
> When I try to create a dynamic field from my transformer, it doesn't get
> created.
>
> If I do exactly the same thing from my dataimport handler config file, it
> works as expected.
>
> Has anyone experienced this? I'm using a nightly build from about 3 weeks
> ago. I realize there were some fixes done to the DataImportHandler since
> then, but if I understand them correctly, they seem unrelated to my issue
> (
> http://www.nabble.com/localsolr-and-dataimport-problems-to18849983.html#a18854923
> ).
> --
> View this message in context:
> http://www.nabble.com/Creating-dynamic-fields-with-DataImportHandler-tp19226532p19226532.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
Regards,
Shalin Shekhar Mangar.