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
,org.apache.maven.search.api.SearchBackend
,org.apache.maven.search.api.SearchEngine
,IndexerCoreSearchBackend
public class IndexerCoreSearchBackendImpl
extends org.apache.maven.search.api.support.SearchBackendSupport
implements IndexerCoreSearchBackend
An engine to perform search trough single repository index (endpoint).
-
Constructor Summary
ConstructorDescriptionIndexerCoreSearchBackendImpl
(org.apache.maven.index.Indexer indexer, org.apache.maven.index.context.IndexingContext indexingContext) Creates backend instance using provided indexer and context. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.index.context.IndexingContext
Returns theIndexingContext
used by this search backend, nevernull
.search
(org.apache.maven.search.api.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
public IndexerCoreSearchBackendImpl(org.apache.maven.index.Indexer indexer, org.apache.maven.index.context.IndexingContext indexingContext) Creates backend instance using provided indexer and context.
-
-
Method Details
-
getIndexingContext
public org.apache.maven.index.context.IndexingContext getIndexingContext()Description copied from interface:IndexerCoreSearchBackend
Returns theIndexingContext
used by this search backend, nevernull
.- Specified by:
getIndexingContext
in interfaceIndexerCoreSearchBackend
-
search
public IndexerCoreSearchResponse search(org.apache.maven.search.api.SearchRequest searchRequest) throws IOException - Specified by:
search
in interfaceIndexerCoreSearchBackend
- Specified by:
search
in interfaceorg.apache.maven.search.api.SearchEngine
- Throws:
IOException
-