Sounds like a perl script would be sufficient.

-- Jack Krupansky

-----Original Message----- From: Rajani Maski
Sent: Saturday, August 04, 2012 2:23 PM
To: solr-user@lucene.apache.org
Subject: Re: Adding new field before import- using post.jar

They are coming from text file.

SolrXML input documents are xmls in folder location. (To import these xmls,
I was using simple post.jar) Now, for each xml there is need to add 3
external new fields reading values from text file.


Regards
Rajani

On Sat, Aug 4, 2012 at 10:59 PM, Jack Krupansky <j...@basetechnology.com>wrote:

Where are the values of the three new fields coming from?

Are they constant/default values?
Computed from other fields in the XML?
From other XML files?
From a text file?
From a database?
Or where?

So, given a specific Solr XML input document, how will you be accessing
the three field values to add?

This may guide the approach that you could/should take.


-- Jack Krupansky

-----Original Message----- From: Rajani Maski
Sent: Friday, August 03, 2012 5:37 AM
To: solr-user@lucene.apache.org
Subject: Adding new field before import- using post.jar

Hi all,

I have xmls in a folder in the standard solr xml format. I was simply using
SimplePostTool.java to import these xmls to solr. Now I have to add 3 new
fields to each document in the xml before doing a post.

What can be the effective way for doing this?


Thanks & Regards
Rajani


Reply via email to