Lucene.net index directory usage in java lucene
Lucene.net is a direct开发者_运维知识库 port of Lucene for java, so it stands to reason that i could use the index directory created by Lucene.net directly from Lucene in java, is this assumption correct?
From the Lucene.Net site:
In addition to the APIs and classes port to C#, the algorithm of Java Lucene is ported to C# Lucene. This means an index created with Java Lucene is back-and-forth compatible with the C# Lucene; both at reading, writing and updating. In fact a Lucene index can be concurrently searched and updated using Java Lucene and C# Lucene processes.
However, as Thilo points out in the comments, this compatibility is version-dependant; the index format may change between releases.
精彩评论