Question about how to upload XML by using SolrJ Client Java Code

2014-02-12 Thread Eric_Peng
I was just trying to use SolrJ Client to import XML data to Solr server. And I read SolrJ wiki that says SolrJ lets you upload content in XML and Binary format I realized there is a XML parser in Solr (We can use a dataUpadateHandler in Solr default UI Solr Core Dataimport) So I was wondering

Re: Question about how to upload XML by using SolrJ Client Java Code

2014-02-12 Thread Eric_Peng
Thanks a lot, learnt a lot from it -- View this message in context: http://lucene.472066.n3.nabble.com/Question-about-how-to-upload-XML-by-using-SolrJ-Client-Java-Code-tp4116901p4116937.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Question about how to upload XML by using SolrJ Client Java Code

2014-02-12 Thread Eric_Peng
Thanks you so much Erick, I will try to write my owe XML parser -- View this message in context: http://lucene.472066.n3.nabble.com/Question-about-how-to-upload-XML-by-using-SolrJ-Client-Java-Code-tp4116901p4116936.html Sent from the Solr - User mailing list archive at Nabble.com.

Could not connect or ping a core after import a big data into it...

2014-02-14 Thread Eric_Peng
Need help, Thx in advance. About import a big XML document (using DIH or SolrJ) into Solr core(for examle SolrPedia), it works fine when I query. But after I stop the server, and then restart my Jetty server. I could not ping the core SolrPedia

Re: Could not connect or ping a core after import a big data into it...

2014-02-14 Thread Eric_Peng
Some warning...always,but no errors 12:00:23 WARN SolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: D:\workspaceEE\TestSolr\solr\collection1\..\..\..\contrib\extraction\lib). 12:00:23 WARN SolrResourceLoader Can't find (or read)

Re: Could not connect or ping a core after import a big data into it...

2014-02-14 Thread Eric_Peng
I think I juse used hard Commit // Make the docs we just added searchable using a hard commit solr.commit(true, true); -- View this message in context: http://lucene.472066.n3.nabble.com/Could-not-connect-or-ping-a-core-after-import-a-big-data-into-it-tp4117416p4117432.html

Re: Could not connect or ping a core after import a big data into it...

2014-02-14 Thread Eric_Peng
One another thing wield is that: If I just import a small data everything goes very well. Still have the same warnings in log but everything works fine -- View this message in context:

Re: Could not connect or ping a core after import a big data into it...

2014-02-14 Thread Eric_Peng
Last 3 lines of the log(only these have something special) 12:17:12 WARN SolrResourceLoader Solr loaded a deprecated plugin/analysis class [solr.JsonUpdateRequestHandler]. Please consult documentation how to replace it accordingly. 12:17:12 WARN SolrResourceLoader Solr loaded a deprecated

Re: Could not connect or ping a core after import a big data into it...

2014-02-17 Thread Eric_Peng
Sir, after I made experiment if I there are more than 1000(roughly) documents in the core, the problem will show up. then I make a query in command window it shows Exception in thread main org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error opening new searcher. exceeded

Re: Could not connect or ping a core after import a big data into it...

2014-02-17 Thread Eric_Peng
I found out in this stranger situation, I could import, update, or delete data(using DIH or SolrJ) But the query will waiting forever. So I delete all the documents or just reduce the document number and then restart the server, problem disappeared -- View this message in context:

Re: Could not connect or ping a core after import a big data into it...

2014-02-17 Thread Eric_Peng
I solved it , my mistake I was using Solr4.6.1 jars, but in my solrconfig.xml I used LucenMatcheVersion 4.5 I just coped from last project and didn't check it. My really stupid mistake -- View this message in context: