Class IndexerCoreSearchBackendImpl
java.lang.Object
org.apache.maven.search.api.support.SearchBackendSupport
org.apache.maven.search.backend.indexer.internal.IndexerCoreSearchBackendImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SearchBackend
,SearchEngine
,IndexerCoreSearchBackend
public class IndexerCoreSearchBackendImpl
extends SearchBackendSupport
implements IndexerCoreSearchBackend
An engine to perform search trough single repository index (endpoint).
-
Constructor Summary
ConstructorDescriptionIndexerCoreSearchBackendImpl
(Indexer indexer, IndexingContext indexingContext) Creates backend instance using provided indexer and context. -
Method Summary
Modifier and TypeMethodDescriptionReturns theIndexingContext
used by this search backend, nevernull
.search
(SearchRequest searchRequest) Methods inherited from class org.apache.maven.search.api.support.SearchBackendSupport
close, getBackendId, getRepositoryId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.search.api.SearchBackend
getBackendId, getRepositoryId
-
Constructor Details
-
IndexerCoreSearchBackendImpl
Creates backend instance using provided indexer and context.
-
-
Method Details
-
getIndexingContext
Description copied from interface:IndexerCoreSearchBackend
Returns theIndexingContext
used by this search backend, nevernull
.- Specified by:
getIndexingContext
in interfaceIndexerCoreSearchBackend
-
search
Description copied from interface:SearchEngine
- Specified by:
search
in interfaceIndexerCoreSearchBackend
- Specified by:
search
in interfaceSearchEngine
- Throws:
IOException
-