Re: Concatenate multivalued DIH fields

2011-05-20 Thread alexei
Thank you for your replies guys. Personally I like the flatten="true" option. However there is still one issue with it. After stripping the tags away, I get "JoeSmith" instead of "Joe Smith" with a space (solr 3.1). Did anyone run into this issue? Cheers, Alexei -- View this message in context:

Re: Concatenate multivalued DIH fields

2011-04-28 Thread jimtronic
I solved this problem using the flatten="true" attribute. Given this schema Joe Smith attr_names is a multiValued field in my schema.xml. The flatten attribute tells solr to take all the text from the specified node and below. -- View this message in context: htt

Re: Concatenate multivalued DIH fields

2011-04-10 Thread Lance Norskog
The XPathEntityProcessor allows you to use an external XSL transform file. In that you can do anything you want. Another option is to use the script transformer: http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer On Wed, Apr 6, 2011 at 12:16 PM, alexei wrote: > Hi Everyone, > > I am

Re: Concatenate multivalued DIH fields

2011-04-06 Thread alexei
Hi Everyone, I am having an identical problem with concatenating author's first and last names stored in an xml blob. Because this field is multivalued copyfield does not work. Does anyone have a solution? Regards, Alexei -- View this message in context: http://lucene.472066.n3.nabble.com/Co

Re: Concatenate multivalued DIH fields

2011-03-31 Thread neha
Hi, When there are multiple authors instead of concatenating, it append list of last names after the first names. Vincent White Bakken Sjaastad Maurice B. Linda R. Inger Johanne Ottar Thanks, Neha - Thanks, Neha -- View this message in context: http://lucene.472066.n3.nabble.com/Concatenate

Re: Concatenate multivalued DIH fields

2011-03-31 Thread Marcelo Iturbe
Hello, In the schema.xml file you can contenate much easier. Hope this helps On Tue, Mar 29, 2011 at 3:01 PM, neha wrote: > I have two multivalued DIH fields "fname" and "lname". I want to > concatenate > each of the fname and lname pairs to get a third multivalued DIH field >

Re: Concatenate multivalued DIH fields

2011-03-31 Thread neha
I would appreciate any help on this issue, I am unable to proceed without getting this solved. Thanks, Neha - Thanks, Neha -- View this message in context: http://lucene.472066.n3.nabble.com/Concatenate-multivalued-DIH-fields-tp2749988p2758485.html Sent from the Solr - User mailing list arc

Re: Concatenate multivalued DIH fields

2011-03-30 Thread neha
I wrote this snippet but get an exception -- View this message in context: http://lucene.472066.n3.nabble.com/Concatenate-multivalued-DIH-fields-tp2749988p2753910.html Sent from the Solr - User mailing list ar

Re: Concatenate multivalued DIH fields

2011-03-30 Thread neha
I am getting data from an xml file. If possible would you be able to guide me with a code snippet for script transformer for doing this(I am sorry if this very basic, I am a newbie to Solr). Thanks, Neha -- View this message in context: http://lucene.472066.n3.nabble.com/Concatenate-multivalued-

Re: Concatenate multivalued DIH fields

2011-03-30 Thread Stefan Matheis
suggesting an alternative way .. adjust your query and use the rdbms-concat function? On Wed, Mar 30, 2011 at 3:22 PM, neha wrote: > HI, when i tried to use template transformer, it concatenates the entire > multivalued field with other, not each element of the multivalued fields. >  [Lars L., He

Re: Concatenate multivalued DIH fields

2011-03-30 Thread neha
HI, when i tried to use template transformer, it concatenates the entire multivalued field with other, not each element of the multivalued fields. [Lars L., Helle K., Thomas A., Jes] [Thomsen, Iversen, Brinck, Olesen], instead of Lars L. Thomsen, Helle K. Iverson, Thomas A Brinck, Jes Oleson.

Re: Concatenate multivalued DIH fields

2011-03-30 Thread Stefan Matheis
Neha, If you just need to combine them .. w/o further logic, http://wiki.apache.org/solr/DataImportHandler#TemplateTransformer should be enough The first Example for ScriptTransformer should be pretty clear, no? The Function (which you define as ScriptTransformer) will retrieve the current row as

Re: Concatenate multivalued DIH fields

2011-03-29 Thread neha
Thank you for ur reply, but is there more documentation on Script Transformer?? I am newbie to Solr DIH. Can I send two rows as parameters to the script transformer function. Also what is the syntax to call the script transformer in the DIH field?? The documentation is not very clear about it. Tha

Re: Concatenate multivalued DIH fields

2011-03-29 Thread Markus Jelsma
Haven't tried your use case but i believe DIH's ScriptTransformer can do the trick. It seems to operate on rows so you can fetch both fields and add a concatenated field. http://wiki.apache.org/solr/DataImportHandler#ScriptTransformer > I have two multivalued DIH fields "fname" and "lname". I w