If you use DataImportHandler, you can combine LineEntityProcessor with RegexTransformer to split each line into a bunch of fields: https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler#UploadingStructuredDataStoreDatawiththeDataImportHandler-TheRegexTransformer
You could then trim the whitespace in the UpdateRequestProcessor chain that you can setup to run after DIH and use TrimFieldUpdate URP http://www.solr-start.com/info/update-request-processors/#TrimFieldUpdateProcessorFactory I think this should do the job. With bin/post, you could setup a custom URP chain as well, but it does not have an equivalent of RegexTransformer that splits into multiple other fields. Not that it would be hard to write one, just nobody did yet. Regards, Alex. ---- Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 28 August 2015 at 03:19, timmsn <tim.hammac...@web.de> wrote: > Hello, > > i use Solr 5.2.1 and the bin/post tool. I try to set the index of some files > they have a fixed length and no withespace to seperate the words. > How can i Programm a Template or so for my fields? > Or can i edit the schema.xml for my Problem? > > This ist one record from one file, in this file are 40 - 100 records. > > AB134364312 58553521789 245678923521234130311G11222345610711MUELLER, > MAX -00014680Q1-24579021-204052667980002 EEUR 0223/123835062 > 130445 > > > Thanks! > > Tim > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Indexing-Fixed-length-file-tp4225807.html > Sent from the Solr - User mailing list archive at Nabble.com.