Class LuceneConnection

java.lang.Object
com.atlassian.confluence.internal.search.v2.lucene.LuceneConnection
All Implemented Interfaces:
ILuceneConnection, LuceneAccessor

public class LuceneConnection extends Object implements ILuceneConnection, LuceneAccessor
The implementation of ILuceneConnection that allows concurrent searching/reading and writing/deleting. Concurrent writes and deletes block each other.

This class optimizes use of Lucene reader instances by holding a common IndexReader that is shared by idempotent operations on an unmodified index. Any mutative operations cause the current IndexReader to be cleared, and subsequent reads will see the results of the previous index change.
Since:
8.0