1. I am using EmbeddedSolr and using example from here: http://wiki.apache.org/solr/EmbeddedSolr I just noticed that there is a note there saying that the page is out of date, is that true and if yes is there an example that uses Solrj?
unless you *really* need to - and feel comfortable with the code, the example on EmbeddedSolr may lead to more trouble then it is worth.
If possible, I'd suggest using solrj. If you need to work in an embedded environment, you get the same API (and can change later if needed)
see: http://wiki.apache.org/solr/Solrj#head-02003c15f194db1a691f8b9bb909145a60ccf498 ryan