[Yanel-dev] LuceneIndexerV2

Balz Schreier balz.schreier at gmail.com
Fri Apr 29 15:18:45 CEST 2011


Hi Michael,

I am now implementing property indexing for my project.
I noticed the following in the current LuceneIndexerV2 class:

- the updateIndex method is not synchronized, this can easily cause a
corrupt index at high traffic

- the line where the fulltext is added to the document:

                       luceneDoc.add(new Field(LuceneIndexer.
INDEX_PROPERTY_FULL, fullText, Field.Store.YES, Field.Index.TOKENIZED));

This has changed compared to LuceneIndexer (v1): there it was stored with
Field.Store.NO .
Is there a certain reason why this has been changed? I only ask because this
will increase dramatically the size of the index if you store the full
content in the index too.



As I will use my own Indexer class anyway, this has no urgency to be changed
in Yanel, but it is interesting to improve the V2 class.

Cheers
Balz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110429/77fa28ff/attachment.html>


More information about the Yanel-development mailing list