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 2010/02/02 00:50:16 UTC

[Lucene-java Wiki] Update of "LuceneFAQ" by MikeMcCandless

Dear Wiki user,

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

The "LuceneFAQ" page has been changed by MikeMcCandless.
The comment on this change is: Remove stale FAQ entry -- as of 2.1 you should not hit FileNotFoundException when reading & writing the same index.
http://wiki.apache.org/lucene-java/LuceneFAQ?action=diff&rev1=141&rev2=142

--------------------------------------------------

  ==== How do I speed up searching? ====
  
  See ImproveSearchingSpeed.
- 
- ==== Why do I sometimes get a FileNotFoundException when I search and update my index at the same time? ====
- 
- This typically happens when people do one or more of the following things:
-   * Disable the locking on one or more of the processes searching or updating the index.
-   * Configure a different lockDir for at least one of the processes searching or updating the index.
-   * Try to search or update an index with the lockDir configured to be on an NFS (or Samba) mounted filesystem.
- 
- Even though index searching is a read only operation, the !IndexSearcher must momentarily lock the index when it is opened in order to get the list of files in the index.  If locking is not configured properly it gets an incorrect list (because the list of files changes as the !IndexWriter adds docs or optimizes the index).  Remote filesystems (like NFS and Samba) rarely work, because they cannot make the transactional guarantees neccessary to ensure that all clients get consistent views of the directory.
  
  === Indexing ===