Id suggest what someone else mentioned to just do a full clean up of
the index. Sounds like you might have kill -9 or stopped the process
manually while indexing (would be only reason for a left over lock).
- Jon
On Mar 11, 2009, at 5:16 AM, Ashish P wrote:
I added <lockType>single</lockType> in indexDefaults that made the
error
before 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.fdt
at
org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:440)
at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:62)
at
org
.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
getDirectory
WARNING: No lockType configured for C:\dw-solr\solr\./data/index/
assuming
'simple'
Mar 11, 2009 6:00:29 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.lucene.store.LockObtainFailedException: Lock
obtain
timed out:
simplefsl...@c:\dw-solr\solr\.\data\index
\lucene-1d6c0059ac2f9f2c83acf749af7e0906-write.lock
at 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)
at
org.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.xml
Q.1. Using solrJ can I index all docs in this file directly?? or
do I
have
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.