lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-java Wiki] Update of "LuceneFAQ" by MikeMcCandless
Date Sat, 09 Jun 2007 16:16:42 GMT
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/LuceneFAQ

------------------------------------------------------------------------------
  
  ==== What is index optimization and when should I use it? ====
  
- The !IndexWriter class supports an optimize() method that compacts the index database and
speedup queries. You may want to use this method after performing a complete indexing of your
document set or after incremental updates of the index. If your incremental update adds documents
frequently, you want to perform the optimization only once in a while to avoid the extra overhead
of the optimization.
+ The !IndexWriter class supports an optimize() method that compacts the index database and
speeds up queries. You may want to use this method after performing a complete indexing of
your document set or after incremental updates of the index. If your incremental update adds
documents frequently, you want to perform the optimization only once in a while to avoid the
extra overhead of the optimization.
  
  ==== What are Segments? ====
  
@@ -525, +525 @@

  The commit.lock should thus never be held for long, since while
  it is obtained files are only opened or deleted, and one small file is
  read or written.
+ 
+ Note that as of Lucene 2.1, the commit.lock is no longer used.  Instead,
+ to prevent contention on the segments file, Lucene writes to segments_N
+ files where each commit increments the N.  The write.lock is still used.
+ See [http://issues.apache.org/jira/browse/LUCENE-701 LUCENE-701] for
+ details.
  
  ==== My program crashed and now I get a "Lock obtain timed out." error. Where is the lock
and how can i delete it? ====
  
@@ -727, +733 @@

  additional ones) and any that still fail will be rewritten to the
  deletable file.
  
+ Note that as of 2.1 the deletable file is no longer used.  Instead,
+ Lucene computes which files are no longer referenced by the index
+ and removes them whenever a writer is created.
+ 
+ ==== How can I speed up the indexing performance? ====
+ 
+ See ImproveIndexingSpeed.
+ 

Mime
View raw message