Hi all,
I'm using DIH solr 3.5 to import data from mysql. In my document, I have
some fields: name, category, text_spell, ...
text_spell is a multi-valued field which combines from name and category
(category is a multi-value field as well).
entity name=listing
query=SELECT uuid,
Hello,
First of all you can have an access to the context, where the parent entity
fields can be obtained from (following your link):
The semantics of execution is same as that of a java transformer. The
method can have two arguments as in 'transformRow(MapString,Object ,
Context context) in the
Thanks Mikhail.
Yeah, in this case CopyField is better. I can combine multiple fields into
a new field, right? Something like this:
copyField source=name dest=text_spell/
copyField source=keyphrase dest=text_spell/
copyField source=category dest=text_spell/
Anyway, I might need to access the
Chamnap,
Context's way is kind of experimental as-is approach, and the only way to
explore it is use debugger or be ready to debug JavaScript manually. It is
not documented well.
Common approach is copyfield.
With Best Wishes.
On Sat, Mar 10, 2012 at 8:24 PM, Chamnap Chhorn