Erm... can it be you have several processes running on it?I would start by a cleanup of it all and attempt a simple solr addition before the xml.
paul Le 11-mars-09 à 10:16, Ashish P a écrit :
I added <lockType>single</lockType> in indexDefaults that made the errorbefore go away but now I am getting following error : Mar 11, 2009 6:12:56 PM org.apache.solr.common.SolrException log SEVERE: java.io.IOException: Cannot overwrite: C:\dw-solr\solr\data\index\_1o.fdtat org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:440)at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:62) atorg .apache .lucene .index.StoredFieldsWriter.initFieldsWriter(StoredFieldsWriter.java:65)Please help.. Ashish P wrote:Thanks man. I just tried what u suggested but I am getting following error when performing request Mar 11, 2009 6:00:28 PM org.apache.solr.update.SolrIndexWriter getDirectoryWARNING: No lockType configured for C:\dw-solr\solr\./data/index/ assuming'simple' Mar 11, 2009 6:00:29 PM org.apache.solr.common.SolrException logSEVERE: org.apache.lucene.store.LockObtainFailedException: Lock obtaintimed out:simplefsl...@c:\dw-solr\solr\.\data\index \lucene-1d6c0059ac2f9f2c83acf749af7e0906-write.lockat org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1140) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:938) atorg.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java: 116)Any ideas??? -Ashish Noble Paul നോബിള് नोब्ळ् wrote:String xml = null;//load the file to the xml string DirectXmlRequest up = new DirectXmlRequest( "/update", xml ); solrServer.request( up ); On Wed, Mar 11, 2009 at 2:19 PM, Ashish P <ashish.ping...@gmail.com> wrote:I have an XML file with structure : <documents> <doc>...</doc> <doc>...</doc> . . </documents> It is present on disk on some location let's say C:\\documents.xmlQ.1. Using solrJ can I index all docs in this file directly?? or do Ihave to convert each document to solrInputDocument by parsing XML Q.2 How to use DirectXmlRequest?? any example Thanks in advance... Ashish -- View this message in context: http://www.nabble.com/SolrJ-XML-indexing-tp22450845p22450845.html Sent from the Solr - User mailing list archive at Nabble.com.-- --Noble Paul-- View this message in context: http://www.nabble.com/SolrJ-XML-indexing-tp22450845p22451235.html Sent from the Solr - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature