Oh, sorry, I got the direction backwards in my initial reply.
Yes, of course you can use an index from Solr with Lucene directly.
It's just a Lucene index. Just make sure you use the same version of
Lucene (pull the JARs from solr.war, I'd say). For example, you can
open a "Solr index" with Luke.
If you're using a Lucene app against a live Solr index, be careful
with locking (in short, the default lock setting in solrconfig.xml
isn't set for sharing the index between two processes).
Erik
On Apr 9, 2010, at 3:18 AM, Tommy Chheng wrote:
I was thinking of the reverse case: from solr to lucene. lucene
doesn't use a schema.xml
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com
On 4/9/10 12:15 AM, Paul Libbrecht wrote:
This looks like an interesting avenue for a smooth transition from
lucene to solr.
thanks for more hints you find around.
(e.g. maybe it is not too hard to pre-generate a schema.xml from an
actual index for the field-types?)
paul
Le 09-avr.-10 à 02:32, Erik Hatcher a écrit :
Yes... gotta jive with schema.xml though.
Erik
On Apr 8, 2010, at 7:18 PM, Tommy Chheng wrote:
If i build an index with solr, is it possible to use the index
folder with lucene?
--
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com