tags:

views:

239

answers:

3

Hello,

I am working in a project that has a big amount of data in Lucene. We need to show a faceted search and the time requiered for it is unacceptable when trying to simulate it using regular Lucene accesss. I have been reading about Solr, but tutorials are not very clear about this basic point: Is the data stored in the same way using Solr and Lucene? I mean, could I access the data I have stored with Lucene by using Solr or would I have to make a data migration?

Sorry for my bad english and thanks in advance.

+1  A: 

Solr is basically a wrapper around the lucene functionality, making things a little easier (like providing an administration interface). If you are using Solr, you are by definition using the lucene search engine.

More info here.

davek
+4  A: 

Yes, you can use the same Lucene index in a Solr instance. You only need to create a schema.xml to match the fields you have in your index.

Mauricio Scheffer
You do need to use the same Lucene versions right? Otherwise you get a compatiblity error in reading the index.
Eric Pugh
yup, although Solr 1.4 does some automatic index upgrades, I don't know how far back it can go.
Mauricio Scheffer
+2  A: 

While you could use the Lucene directly under Solr the way Mauricio highlighted, unless you had some special reason, like you can't reindex the data because the data is gone, then I feel like you would be swimming uphill to just put your index into Solr...

And you most likely will need to reindex data anyway at some point, so figuring out how to do it in using the better indexing options that Solr provides would save time in the longer run.

Eric Pugh