On Thu, Oct 1, 2009 at 8:21 AM, iron light <[email protected]> wrote:
> The reason is I wanna dig deeply.
OK :) That's fun!
> I just read the code. And found that the index namespace (IndexWriter!) in
> so tough for me.
> Is there any document, resource or blog about the code?
In general there's no separate document detailing how Lucene's source
code works; the code itself (and its comments) is all there is. If
you are going through the code, please add comments & post a patch and
we can improve its comments over time. Source code is a living thing
and constantly evolving :)
But, for the index file format in particular, there is this:
http://lucene.apache.org/java/2_9_0/fileformats.html
If you want specifically to parse the terms dict/index, you should
look at SegmentTermEnum and TermInfosReader for inspiration...
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]