Conditional field values in DataImport

2011-07-26 Thread solruser@9913
This may be a trivial question - I am noob :). In the dataimport of a CSV file, am trying to assign a field based on a conditional check on another field. E.g. this works well. However I need to create another field A that is assigned a value based on X. Something like this

Data Import Handler Architecture Diagram

2011-07-27 Thread solruser@9913
Maybe I am looking at the wrong version - the diagram (and the screenshot in the interactive dev mode section) don't show up in the WIKI page. http://wiki.apache.org/solr/DataImportHandler#Architecture Is this a wrong link? I did an inspect element and this is what I see ... /solr/DataImport

Data Import Handler Diagram

2011-07-27 Thread solruser@9913
Maybe I am looking at the wrong version - the diagram (and the screenshot in the interactive dev mode section) don't show up in the WIKI page. http://wiki.apache.org/solr/DataImportHandler#Architecture Is this a wrong link? I did an inspect element and this is what I see ... ... img alt=

Store complete XML record (DIH & XPathEntityProcessor)

2011-07-27 Thread solruser@9913
I am trying to use DIH to import an XML based file with multiple XML records in it. Each record corresponds to one document in Lucene. I am using the DIH FileListEntityProcessor (to get file list) followed by the XPathEntityProcessor to create the entities. It works perfectly and I am able to

Re: Store complete XML record (DIH & XPathEntityProcessor)

2011-07-28 Thread solruser@9913
Thanks Chantal I am ok with the second call and I already tried using that. Unfortunatly It reads the whole file into a field. My file is as below example ... ... ... Now the XPATH does the 'for each /record' part. For each record I also need

Solr DIH import - Date Question

2011-08-04 Thread solruser@9913
This is perhaps a 'truly newbie' question. I am processing some files via DIH handler/XPATH Processor. Some of the date fields in the XML are in 'Java Long format' i.e. just a big long number. I am wondering how to map them Solr Date field. I used the DIH DateFormatTransformer for some other '