Class DefaultConfiguration
- java.lang.Object
-
- com.atlassian.confluence.internal.search.v2.lucene.DefaultConfiguration
-
- All Implemented Interfaces:
ILuceneConnection.Configuration
public class DefaultConfiguration extends Object implements ILuceneConnection.Configuration
Configuration for anILuceneConnection
, with the default values as used by Confluence.- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description DefaultConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBatchMaxBufferedDocs()
int
getBatchMaxMergeDocs()
int
getBatchMergeFactor()
long
getIndexSearcherMaxAge()
The max age of an IndexSearcher in seconds.long
getIndexSearcherPruneDelay()
The delay in seconds before attempting to prune IndexSearchers that have exceeded their max age.int
getInteractiveMaxBufferedDocs()
int
getInteractiveMaxMergeDocs()
int
getInteractiveMergeFactor()
int
getMaxFieldLength()
boolean
isCompoundIndexFileFormat()
void
setBatchMaxBufferedDocs(int batchMaxBufferedDocs)
void
setBatchMaxMergeDocs(int batchMaxMergeDocs)
void
setBatchMergeFactor(int batchMergeFactor)
void
setCompoundIndexFileFormat(boolean compoundIndexFileFormat)
void
setIndexSearcherMaxAge(long indexSearcherMaxAge)
void
setIndexSearcherPruneDelay(long indexSearcherPruneDelay)
void
setInteractiveMaxBufferedDocs(int interactiveMaxBufferedDocs)
void
setInteractiveMaxMergeDocs(int interactiveMaxMergeDocs)
void
setInteractiveMergeFactor(int interactiveMergeFactor)
void
setMaxFieldLength(int maxFieldLength)
-
-
-
Method Detail
-
getBatchMaxBufferedDocs
public int getBatchMaxBufferedDocs()
- Specified by:
getBatchMaxBufferedDocs
in interfaceILuceneConnection.Configuration
-
setBatchMaxBufferedDocs
public void setBatchMaxBufferedDocs(int batchMaxBufferedDocs)
-
getBatchMaxMergeDocs
public int getBatchMaxMergeDocs()
- Specified by:
getBatchMaxMergeDocs
in interfaceILuceneConnection.Configuration
-
setBatchMaxMergeDocs
public void setBatchMaxMergeDocs(int batchMaxMergeDocs)
-
getBatchMergeFactor
public int getBatchMergeFactor()
- Specified by:
getBatchMergeFactor
in interfaceILuceneConnection.Configuration
-
setBatchMergeFactor
public void setBatchMergeFactor(int batchMergeFactor)
-
getInteractiveMaxBufferedDocs
public int getInteractiveMaxBufferedDocs()
- Specified by:
getInteractiveMaxBufferedDocs
in interfaceILuceneConnection.Configuration
-
setInteractiveMaxBufferedDocs
public void setInteractiveMaxBufferedDocs(int interactiveMaxBufferedDocs)
-
getInteractiveMaxMergeDocs
public int getInteractiveMaxMergeDocs()
- Specified by:
getInteractiveMaxMergeDocs
in interfaceILuceneConnection.Configuration
-
setInteractiveMaxMergeDocs
public void setInteractiveMaxMergeDocs(int interactiveMaxMergeDocs)
-
getInteractiveMergeFactor
public int getInteractiveMergeFactor()
- Specified by:
getInteractiveMergeFactor
in interfaceILuceneConnection.Configuration
-
setInteractiveMergeFactor
public void setInteractiveMergeFactor(int interactiveMergeFactor)
-
getMaxFieldLength
public int getMaxFieldLength()
- Specified by:
getMaxFieldLength
in interfaceILuceneConnection.Configuration
-
setMaxFieldLength
public void setMaxFieldLength(int maxFieldLength)
-
isCompoundIndexFileFormat
public boolean isCompoundIndexFileFormat()
- Specified by:
isCompoundIndexFileFormat
in interfaceILuceneConnection.Configuration
-
setCompoundIndexFileFormat
public void setCompoundIndexFileFormat(boolean compoundIndexFileFormat)
-
getIndexSearcherMaxAge
public long getIndexSearcherMaxAge()
Description copied from interface:ILuceneConnection.Configuration
The max age of an IndexSearcher in seconds.IndexSearchers that are older than this are eligible for pruning by a scheduled job so that it's resources are reclaimed.
- Specified by:
getIndexSearcherMaxAge
in interfaceILuceneConnection.Configuration
- Returns:
- max age of an IndexSearcher in seconds.
-
setIndexSearcherMaxAge
public void setIndexSearcherMaxAge(long indexSearcherMaxAge)
-
getIndexSearcherPruneDelay
public long getIndexSearcherPruneDelay()
Description copied from interface:ILuceneConnection.Configuration
The delay in seconds before attempting to prune IndexSearchers that have exceeded their max age.- Specified by:
getIndexSearcherPruneDelay
in interfaceILuceneConnection.Configuration
- Returns:
- delay in seconds
-
setIndexSearcherPruneDelay
public void setIndexSearcherPruneDelay(long indexSearcherPruneDelay)
-
-