Thanks Eric However
java -classpath dist/solr-core-4.10.3.jar -Dauto=true org.apache.solr.util.SimplePostTool C:/temp/samplemsg/*.msg Fails with: osting files to base url http://localhost:8983/solr/update.. ntering auto mode. File endings considered are xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log implePostTool: WARNING: Skipping 000000006252671B765A1748992DF1A6403BDF81A4A02A00.msg. Unsupported file type for auto mode. implePostTool: WARNING: Skipping 000000006252671B765A1748992DF1A6403BDF81A4A02B00.msg. Unsupported file type for auto mode. implePostTool: WARNING: Skipping 000000006252671B765A1748992DF1A6403BDF81A4A02C00.msg. Unsupported file type for auto mode. That's where I started looking into extending or adding support for additional types. Looking into the code as it stands passing you own URL as well as asking it to recurse a folder means that is requires an ID strategy - which I believe is lacking. Reagrds Mark On 27 January 2015 at 10:57, Erik Hatcher <erik.hatc...@gmail.com> wrote: > Try adding -Dauto=true and take away setting url. The type probably isn't > needed then either. > > With the new Solr 5 bin/post it sets auto=true implicitly. > > Erik > > > > On Jan 26, 2015, at 17:29, Mark <javam...@gmail.com> wrote: > > > > Fantastic - that explians it > > > > Adding -Durl=" > > http://localhost:8983/solr/update/extract?commit=true&overwrite=true" > > > > Get's me a little further > > > > POSTing file 000000006252671B765A1748992DF1A6403BDF81A4A22E00.msg > > SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for > url: > > http://localhost:8983/solr/update/extract?commit=true&overwrite=true > > SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?> > > <response> > > <lst name="responseHeader"><int name="status">400</int><int > > name="QTime">44</int></lst><lst name="error"><str name="msg">Document is > > missing mandatory uniqueKey field: id</str><int name="cod > > e">400</int></lst> > > </response> > > > > However not much use when recursing a directory and the URL essentially > has > > to change to pass the document ID > > > > I think I may just extend SimplePostToo or look to use Solr Cell perhaps? > > > > > > > > On 26 January 2015 at 22:14, Alexandre Rafalovitch <arafa...@gmail.com> > > wrote: > > > >> Well, you are NOT posting to the same URL..... > >> > >> > >>> On 26 January 2015 at 17:00, Mark <javam...@gmail.com> wrote: > >>> http://localhost:8983/solr/update > >> > >> > >> > >> ---- > >> Sign up for my Solr resources newsletter at http://www.solr-start.com/ > >> >