| Package | Description |
|---|---|
| org.hibernate.search.mapper.orm.massindexing | |
| org.hibernate.search.mapper.orm.scope | |
| org.hibernate.search.mapper.orm.session |
| Modifier and Type | Method and Description |
|---|---|
MassIndexer |
MassIndexer.batchSizeToLoadObjects(int batchSize)
Sets the batch size used to load the root entities.
|
MassIndexer |
MassIndexer.cacheMode(CacheMode cacheMode)
Sets the cache interaction mode for the data loading tasks.
|
MassIndexer |
MassIndexer.dropAndCreateSchemaOnStart(boolean dropAndCreateSchema)
Drops the indexes and their schema (if they exist) and re-creates them before indexing.
|
MassIndexer |
MassIndexer.failureHandler(MassIndexingFailureHandler failureHandler)
Sets the
MassIndexingFailureHandler. |
MassIndexer |
MassIndexer.idFetchSize(int idFetchSize)
Specifies the fetch size to be used when loading primary keys
if objects to be indexed.
|
MassIndexer |
MassIndexer.limitIndexedObjectsTo(long maximum)
Stops indexing after having indexed a set amount of objects.
|
MassIndexer |
MassIndexer.mergeSegmentsAfterPurge(boolean enable)
Merges each index into a single segment after the initial index purge, just before indexing.
|
MassIndexer |
MassIndexer.mergeSegmentsOnFinish(boolean enable)
Merges each index into a single segment after indexing.
|
MassIndexer |
MassIndexer.monitor(MassIndexingMonitor monitor)
Sets the
MassIndexingMonitor. |
MassIndexer |
MassIndexer.purgeAllOnStart(boolean purgeAll)
Removes all entities from the indexes before indexing.
|
MassIndexer |
MassIndexer.threadsToLoadObjects(int numberOfThreads)
Sets the number of threads to be used to load
the root entities.
|
MassIndexer |
MassIndexer.transactionTimeout(int timeoutInSeconds)
Timeout of transactions for loading ids and entities to be re-indexed.
|
MassIndexer |
MassIndexer.typesToIndexInParallel(int threadsToIndexObjects)
Sets the number of entity types to be indexed in parallel.
|
| Modifier and Type | Method and Description |
|---|---|
MassIndexer |
SearchScope.massIndexer()
Create a
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types. |
MassIndexer |
SearchScope.massIndexer(String tenantId)
Create a
MassIndexer for the indexes mapped to types in this scope, or to any of their sub-types. |
| Modifier and Type | Method and Description |
|---|---|
default MassIndexer |
SearchSession.massIndexer()
Creates a
MassIndexer to rebuild the indexes of all indexed entity types. |
default MassIndexer |
SearchSession.massIndexer(Class<?>... types)
Creates a
MassIndexer to rebuild the indexes mapped to the given types, or to any of their sub-types. |
MassIndexer |
SearchSession.massIndexer(Collection<? extends Class<?>> types)
Creates a
MassIndexer to rebuild the indexes mapped to the given types, or to any of their sub-types. |
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.