I was able to configure /docs index separately from my db data index. still I am seeing same behavior where it only puts .docName & its size in the "content" field (I have renamed field to "content" in this new schema)
below are the only two fields I have in schema.xml <field name="key" type="slong" indexed="true" stored="true" required="true" /> <field name="content" type="text" indexed="true" stored="true" multiValued="true"/> Following is updated code from test case File fileToIndex = new File("file.txt"); ContentStreamUpdateRequest up = new ContentStreamUpdateRequest("/update/extract"); up.addFile(fileToIndex); up.setParam("literal.key", "8978"); up.setParam("literal.docName", "doc123.txt"); up.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); NamedList list = server.request(up); assertNotNull("Couldn't upload .txt",list); QueryResponse rsp = server.query( new SolrQuery( "*:*") ); assertEquals( 1, rsp.getResults().getNumFound() ); System.out.println(rsp.getResults().get(0).getFieldValue("content")); Also from solr admin UI when I search for "doc123.txt" then only it returns me following response. not sure why its not indexing file's content into "content" attribute. <result name="response" numFound="1" start="0"> <doc> <arr name="content"> <str>702</str> <str>text/plain</str> <str>doc123.txt</str> <str /> </arr> <long name="key">8978</long> </doc> </result> Any idea? Thanks, -- View this message in context: http://old.nabble.com/ExternalRequestHandler-and-ContentStreamUpdateRequest-usage-tp26486817p26498946.html Sent from the Solr - User mailing list archive at Nabble.com.