I would try something like the following: <dataConfig> <dataSource type="FileDataSource" /> <script><![CDATA[ function format(row){ var text = row.get("plainText")
// do regex processsing with Javascript's RegExp object. row.put("all_text", results ); // store results in the "all_text" field. return row; } ]]></script> <document> <entity name="f" processor="FileListEntityProcessor" baseDir="[path to text file directory]" fileName=".*txt" rootEntity="false" dataSource="null"> <entity name="x" processor="PlainTextEntityProcessor" url="${f.fileAbsolutePath}" rootEntity="true" dataSource="null" transformer="script:format"></entity> </entity> </document> </dataConfig> On Fri, Dec 23, 2011 at 7:41 AM, meghana <meghana.rav...@amultek.com> wrote: > Hi.. > > Plz anybody have any idea? how can i achieve this? > > also if it is possible to convert multivalued field to non-multicalued > field > then it would aslo work for me. > > I have custom mustivalued field ArrText, which have value as shown below > <arr name="ArrText" > > <str>12 : Hello World!!</str> > <str>14 : Welcome to Solr.</str> > <str>15 : Enjoy</str> > </arr> > > if we can convert this as my desired result then it would be great. > Thanks in Adcance. > Meghana > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/PlainTextEntityProcessor-and-RegexTransformer-in-DataImport-Handler-tp3608449p3608726.html > Sent from the Solr - User mailing list archive at Nabble.com. > ------------------------------ This e-mail and any files transmitted with it may be proprietary. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Apogee Integration.