You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by busbus <ba...@tcs.com> on 2009/09/10 12:41:59 UTC

How to Convert Lucene index files to XML Format

Hello All,
I have a set of Files indexed by Lucene. Now i want to use the indexed files
in SOLR. The file .cfx an .cfs are not readable by Solr, as it supports only
.fds and .fdx.

So i decided to Add/update the index by just loading a XML File using the
post.jar funtion.

java -jar post.jar newFile.XML - Loads the XML and Updates the index.

Now i want to Convert all the cfx files to XML so that i can Use them in
SOLR.

Advice Needed.

Any other suggestions are most welcomed.

- Balaji
-- 
View this message in context: http://www.nabble.com/How-to-Convert-Lucene-index-files-to-XML-Format-tp25381017p25381017.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to Convert Lucene index files to XML Format

Posted by Lance Norskog <go...@gmail.com>.
It is best to start off with Solr by playing around with the example in the
example/ directory. Index the data in the example/exampledocs directory, do
some searches, look at the index with the admin/luke page. After that, this
will be much easier.

 To bring your Lucene under Solr, you have to examine the design of the
Lucene index and create a matching Solr schema in solr/conf/schema.xml.


On 9/10/09, busbus <ba...@tcs.com> wrote:
>
>
> Thanks for your reply
>
>
>
>
>
> > On Sep 10, 2009, at 6:41 AM, busbus wrote:
> > Solr defers to Lucene on reading the index.  You just need to tell
> > Solr whether the index is a compound file or not and make sure the
> > versions are compatible.
> >
>
> This part seems to be the point.
> How to make solr to read lucene index files.
> There is a tag in Solrconfig.xml
> <useCompundFile> false <useCompundFile>
>
> Enable it to true does not seem to be working.
>
> What else need to be done.
>
> Should i change the config file or add new tag.
>
> Also how to check the compatibility of Lucen and solr
>
> Thanks in advance
>
> --
> View this message in context:
> http://www.nabble.com/How-to-Convert-Lucene-index-files-to-XML-Format-tp25381017p25382367.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Lance Norskog
goksron@gmail.com

Re: How to Convert Lucene index files to XML Format

Posted by busbus <ba...@tcs.com>.
Thanks for your reply





> On Sep 10, 2009, at 6:41 AM, busbus wrote:
> Solr defers to Lucene on reading the index.  You just need to tell  
> Solr whether the index is a compound file or not and make sure the 
> versions are compatible.
> 

This part seems to be the point.
How to make solr to read lucene index files.
There is a tag in Solrconfig.xml
<useCompundFile> false <useCompundFile>

Enable it to true does not seem to be working.

What else need to be done.

Should i change the config file or add new tag.

Also how to check the compatibility of Lucen and solr

Thanks in advance

-- 
View this message in context: http://www.nabble.com/How-to-Convert-Lucene-index-files-to-XML-Format-tp25381017p25382367.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to Convert Lucene index files to XML Format

Posted by Grant Ingersoll <gs...@apache.org>.
On Sep 10, 2009, at 6:41 AM, busbus wrote:

>
> Hello All,
> I have a set of Files indexed by Lucene. Now i want to use the  
> indexed files
> in SOLR. The file .cfx an .cfs are not readable by Solr, as it  
> supports only
> .fds and .fdx.

Solr defers to Lucene on reading the index.  You just need to tell  
Solr whether the index is a compound file or not and make sure the  
versions are compatible.

What error are you getting?


>
> So i decided to Add/update the index by just loading a XML File  
> using the
> post.jar funtion.
>
> java -jar post.jar newFile.XML - Loads the XML and Updates the index.
>
> Now i want to Convert all the cfx files to XML so that i can Use  
> them in
> SOLR.
>
> Advice Needed.

I suppose you could walk the documents and dump them out to XML,  
assuming you have stored all your fields.

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search