Package org.mycore.oai
Class MCROAICombinedSearcher
java.lang.Object
org.mycore.oai.MCROAISearcher
org.mycore.oai.MCROAICombinedSearcher
Combines the solr searcher and the deleted searcher. Ignores the deleted searcher if the DeletedRecordPolicy is set to 'No'.
The deleted records appear after the solr records.
- Author:
- Matthias Eichner
-
Field Summary
Fields inherited from class org.mycore.oai.MCROAISearcher
expire, id, identify, LOGGER, metadataFormat, partitionSize, runningExpirationTimer, setManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the earliest created/modified record time stamp.Optional<org.mycore.oai.pmh.Header>
void
init
(MCROAIIdentify identify, org.mycore.oai.pmh.MetadataFormat format, long expire, int partitionSize, MCROAISetManager setManager, MCROAIObjectManager objectManager) Methods inherited from class org.mycore.oai.MCROAISearcher
getConfigPrefix, getExpirationTime, getID, getMetadataFormat, getObjectManager, getPartitionSize, getSetManager, isExpired, updateRunningExpirationTimer
-
Constructor Details
-
MCROAICombinedSearcher
public MCROAICombinedSearcher()
-
-
Method Details
-
init
public void init(MCROAIIdentify identify, org.mycore.oai.pmh.MetadataFormat format, long expire, int partitionSize, MCROAISetManager setManager, MCROAIObjectManager objectManager) - Overrides:
init
in classMCROAISearcher
-
getHeader
- Specified by:
getHeader
in classMCROAISearcher
-
query
- Specified by:
query
in classMCROAISearcher
-
query
- Specified by:
query
in classMCROAISearcher
-
getEarliestTimestamp
Description copied from class:MCROAISearcher
Returns the earliest created/modified record time stamp. If the earliest time stamp cannot be retrieved an empty optional is returned.- Specified by:
getEarliestTimestamp
in classMCROAISearcher
- Returns:
- the earliest created/modified time stamp
-