Index: src/java/org/apache/lucene/search/IndexSearcher.java =================================================================== --- src/java/org/apache/lucene/search/IndexSearcher.java (revision 798103) +++ src/java/org/apache/lucene/search/IndexSearcher.java (working copy) @@ -36,6 +36,14 @@ * *
Note that you can only access Hits from an IndexSearcher as long as it is * not yet closed, otherwise an IOException will be thrown. + * + *
NOTE: {@link
+ * IndexSearcher} instances are completely
+ * thread safe, meaning multiple threads can call any of its
+ * methods, concurrently. If your application requires
+ * external synchronization, you should not use the
+ * IndexSearcher instance for synchronization;
+ * use a private Object instead.
NOTE: {@link
+ IndexReader} instances are completely thread
+ safe, meaning multiple threads can call any of its methods,
+ concurrently. If your application requires external
+ synchronization, you should not use the
+ IndexReader instance for synchronization; use
+ a private Object instead.