You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/07/09 20:57:56 UTC

[Lucene-java Wiki] Trivial Update of "ImproveIndexingSpeed" by MikeMcCandless

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The following page has been changed by MikeMcCandless:
http://wiki.apache.org/lucene-java/ImproveIndexingSpeed

------------------------------------------------------------------------------
  
   * '''Always add fields in the same order to your Document, when using stored fields or term vectors'''
  
-  Lucene's merging has an optimization whereby stored fields and term vectors can be bulk-byte-copied, but the optimization only applies if the field name -> number mapping is the same across segments.  Future Lucene versions may attempt to assign the same mapping automatically, but until then the only way to get the same mapping is to always add the same fields in the same order to each document you index.
+  Lucene's merging has an optimization whereby stored fields and term vectors can be bulk-byte-copied, but the optimization only applies if the field name -> number mapping is the same across segments.  Future Lucene versions may attempt to assign the same mapping automatically (see [https://issues.apache.org/jira/browse/LUCENE-1737 LUCENE-1737]), but until then the only way to get the same mapping is to always add the same fields in the same order to each document you index.
  
   * '''Re-use a single Token instance in your analyzer'''