On Sep 30, 2005, at 3:42 PM, haipeng du wrote:
When I search the lucene, do I need to take care of Lucene lock? I check the api of Lucene, it will call IndexReader.rewrite(). Does this one need a lock
for lucene index file?
Thanks a lot.

No locking is used for searching. There is no IndexReader.rewrite() method - you must be thinking of IndexSearcher. That "rewrite" method does not write anything to the index, it is to re-format the Query in memory as a more primitive type of Query. For example, a RangeQuery gets rewritten as a BooleanQuery OR'ing all matching terms as TermQuery's.

    Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to