This question already has an answer here:
-
Can a raw Lucene index be loaded by Solr?
4 answers
I am working in a project that has a large amount of data in Lucene. We need to show a faceted search and the time required 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?
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.
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.
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.