On Jul 20, 2009, at 6:11 AM, Code Tester wrote:
I am even unable to delete documents using the EmbeddedSolrServer ( on a
specific core )

Steps:

1) I have 2 cores ( core0 , core1 ) Each of them have ~10 records.

2) System.setProperty("solr.solr.home",
"/home/user/projects/solr/example/multi");
       File home = new File("/home/user/projects/solr/example/multi");
       File f = new File(home, "solr.xml");
       CoreContainer coreContainer = new CoreContainer();
coreContainer.load("/home/user/projects/solr/example/multi", f); SolrServer server = new EmbeddedSolrServer(coreContainer, "core1");

       server.deleteByQuery("*:*");
       server.commit();
       server.optimize();

3) When I check the status using
http://localhost:8983/solr/admin/cores?action=STATUS , I still see same

Assuming both of these point to the same Solr home and data directory, a commit is needed on the HTTP process in order for it to pick up changes made to the underlying index (that occurred without its knowledge).

        Erik

Reply via email to