Hi, 

I'm new to SolrJ. 
Here I are the steps I followed to write an application to index pdf
documents to fresh solr3.6

1 -In Schema.xml:
I added the fields I wanted indexed and changed stored = true.

2 - Started Solr using java -jar start.jar from the /example dir in Solr 3.6

3- In my application I start the server
solrServer = new CommonsHttpSolrServer(url);
solrServer.setParser(new XMLResponseParser());

4 - i index the data like this:
ContentStreamUpdateRequest index  = new
ContentStreamUpdateRequest("/update/extract");
index.setParam("literal.id", "doc");
index.setParam(CommonParams.STREAM_FILE, "/location/x.pdf");
index.setParam(CommonParams.STREAM_CONTENTTYPE, "application/pdf");
index.setParam(UpdateParams.COMMIT, "true");

5 - I commit using solrServer.commit().

When I run a simple query like *:* - don't see anything. The numDocs that
have been indexed is still 0. 
What I doing incorrectly?
Any help would be greatly appreciated. 

Thanks!

--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrJ-indexing-pdf-documents-tp3989965.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to