2010/1/19 Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com>: > 2010/1/19 Tim Terlegård <tim.terleg...@gmail.com>: >> server = new CommonsHttpSolrServer("http://localhost:8983/solr") >> server.setRequestWriter(new BinaryRequestWriter()) >> request = new UpdateRequest() >> request.setAction(UpdateRequest.ACTION.COMMIT, true, true); >> request.setParam("stream.file", "/tmp/data.bin") >> request.process(server) >> >> Should this work? Could there be something wrong with the file? I >> haven't found a good reference for how to create a javabin file, but >> by reading the source code I came up with this (groovy code):
> BinaryRequestWriter does not read from a file and post it Is there any other way or is this use case not supported? I tried this: $ curl <host>/solr/update/javabin -F stream.file=/tmp/data.bin $ curl <host>/solr/update -F stream.body=' <commit />' Solr did read the file, because solr complained when the file wasn't in the format the JavaBinUpdateRequestCodec expected. But no data is added to the index for some reason. /Tim