Uses of Interface
org.apache.maven.index.context.IndexingContext
Package
Description
-
Uses of IndexingContext in org.apache.maven.index
Modifier and TypeMethodDescriptionDefaultNexusIndexer.addIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.DefaultNexusIndexer.addIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory directory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.NexusIndexer.addIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.NexusIndexer.addIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory directory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.UseIndexer
instead.DefaultNexusIndexer.addIndexingContextForced
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.DefaultNexusIndexer.addIndexingContextForced
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory directory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.NexusIndexer.addIndexingContextForced
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.UseIndexer
instead.NexusIndexer.addIndexingContextForced
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory directory, String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexers) Deprecated.UseIndexer
instead.DefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.DefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Deprecated.DefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.DefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Deprecated.DefaultIndexer.createIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, boolean searchable, boolean reclaim, List<? extends IndexCreator> indexers) Indexer.createIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, String repositoryUrl, String indexUpdateUrl, boolean searchable, boolean reclaim, List<? extends IndexCreator> indexers) Creates an indexing context.DefaultIndexer.createMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Indexer.createMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, ContextMemberProvider membersProvider) Creates a merged indexing context.ScanningRequest.getIndexingContext()
protected IndexingContext
DefaultIteratorResultSet.getIndexingContextForPointer
(org.apache.lucene.document.Document doc, int docPtr) Modifier and TypeMethodDescriptionAbstractSearchRequest.getContexts()
DefaultNexusIndexer.getIndexingContexts()
Deprecated.NexusIndexer.getIndexingContexts()
Deprecated.UseIndexer
instead.protected List<IndexingContext>
DefaultSearchEngine.getParticipatingContexts
(Collection<IndexingContext> indexingContexts, boolean ignoreContext) Returns the list of participating contexts.Modifier and TypeMethodDescriptionprotected abstract boolean
AbstractMultiArtifactInfoFilter.accepts
(List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai) It is left to final implementor to implement how we want to decide using filters.boolean
AbstractMultiArtifactInfoFilter.accepts
(IndexingContext ctx, ArtifactInfo ai) The filter's implementation is: if list of filters is empty, the just accept it, otherwise consult the list of filters.protected boolean
AndMultiArtifactInfoFilter.accepts
(List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai) boolean
ArtifactInfoFilter.accepts
(IndexingContext ctx, ArtifactInfo ai) boolean
UniqueArtifactFilterPostprocessor.accepts
(IndexingContext ctx, ArtifactInfo ai) boolean
UniqueGAArtifactFilterPostprocessor.accepts
(IndexingContext ctx, ArtifactInfo ai) Deprecated.void
DefaultIndexer.addArtifactsToIndex
(Collection<ArtifactContext> ac, IndexingContext context) void
DefaultNexusIndexer.addArtifactsToIndex
(Collection<ArtifactContext> acs, IndexingContext context) Deprecated.void
Indexer.addArtifactsToIndex
(Collection<ArtifactContext> acs, IndexingContext context) Adds the passed in artifact contexts to passed in indexing context.void
NexusIndexer.addArtifactsToIndex
(Collection<ArtifactContext> acs, IndexingContext context) Deprecated.void
DefaultIndexer.addArtifactToIndex
(ArtifactContext ac, IndexingContext context) void
DefaultNexusIndexer.addArtifactToIndex
(ArtifactContext ac, IndexingContext context) Deprecated.Delegates to theIndexerEngine
to update artifact to the indexvoid
Indexer.addArtifactToIndex
(ArtifactContext ac, IndexingContext context) Adds the passed in artifact contexts to passed in indexing context.void
NexusIndexer.addArtifactToIndex
(ArtifactContext ac, IndexingContext context) Deprecated.void
DefaultNexusIndexer.addIndexingContext
(IndexingContext context) Deprecated.void
NexusIndexer.addIndexingContext
(IndexingContext context) Deprecated.Adds an indexing context to Nexus indexer.void
DefaultNexusIndexer.artifactDiscovered
(ArtifactContext ac, IndexingContext context) Deprecated.Delegates to theIndexerEngine
to add a new artifact to the indexvoid
NexusIndexer.artifactDiscovered
(ArtifactContext ac, IndexingContext context) Deprecated.protected void
DefaultIteratorResultSet.calculateHighlights
(IndexingContext context, org.apache.lucene.document.Document d, ArtifactInfo ai) Creates the MatchHighlights and adds them to ArtifactInfo if found/can.void
DefaultIndexer.closeIndexingContext
(IndexingContext context, boolean deleteFiles) void
Indexer.closeIndexingContext
(IndexingContext context, boolean deleteFiles) Closes the indexing context: closes it and deletes (if specified) the index files.org.apache.lucene.document.Document
ArtifactContext.createDocument
(IndexingContext context) Creates Lucene Document usingIndexCreator
s from the givenIndexingContext
.void
DefaultNexusIndexer.deleteArtifactFromIndex
(ArtifactContext ac, IndexingContext context) Deprecated.Delegates to theIndexerEngine
to remove artifact from the indexvoid
NexusIndexer.deleteArtifactFromIndex
(ArtifactContext ac, IndexingContext context) Deprecated.void
DefaultIndexer.deleteArtifactsFromIndex
(Collection<ArtifactContext> ac, IndexingContext context) void
DefaultNexusIndexer.deleteArtifactsFromIndex
(Collection<ArtifactContext> acs, IndexingContext context) Deprecated.void
Indexer.deleteArtifactsFromIndex
(Collection<ArtifactContext> acs, IndexingContext context) Removes the passed in artifacts contexts from passed in indexing context.void
NexusIndexer.deleteArtifactsFromIndex
(Collection<ArtifactContext> acs, IndexingContext context) Deprecated.ArtifactContextProducer.getArtifactContext
(IndexingContext context, File file) DefaultArtifactContextProducer.getArtifactContext
(IndexingContext context, File file) Get ArtifactContext for given pom or artifact (jar, war, etc).protected Gav
DefaultArtifactContextProducer.getGavFromPath
(IndexingContext context, String repositoryPath, String artifactPath) DefaultIteratorResultSet.highlightField
(IndexingContext context, MatchHighlightRequest hr, IndexerField field, String text) Returns a string that contains match fragment highlighted in style as user requested.void
DefaultIndexerEngine.index
(IndexingContext context, ArtifactContext ac) void
IndexerEngine.index
(IndexingContext context, ArtifactContext ac) Add new artifact to the indexvoid
ArtifactInfoPostprocessor.postprocess
(IndexingContext ctx, ArtifactInfo ai) void
UniqueArtifactFilterPostprocessor.postprocess
(IndexingContext ctx, ArtifactInfo ai) void
UniqueGAArtifactFilterPostprocessor.postprocess
(IndexingContext ctx, ArtifactInfo ai) Deprecated.void
DefaultIndexerEngine.remove
(IndexingContext context, ArtifactContext ac) void
IndexerEngine.remove
(IndexingContext context, ArtifactContext ac) Remove artifact to the indexvoid
DefaultNexusIndexer.removeIndexingContext
(IndexingContext context, boolean deleteFiles) Deprecated.void
NexusIndexer.removeIndexingContext
(IndexingContext context, boolean deleteFiles) Deprecated.UseIndexer
instead.void
DefaultNexusIndexer.scan
(IndexingContext context) Deprecated.void
DefaultNexusIndexer.scan
(IndexingContext context, boolean update) Deprecated.void
DefaultNexusIndexer.scan
(IndexingContext context, String fromPath, ArtifactScanningListener listener, boolean update) Deprecated.UsesScanner
to scan repository content.void
DefaultNexusIndexer.scan
(IndexingContext context, ArtifactScanningListener listener) Deprecated.void
DefaultNexusIndexer.scan
(IndexingContext context, ArtifactScanningListener listener, boolean update) Deprecated.void
NexusIndexer.scan
(IndexingContext context) Deprecated.UseIndexer
instead.void
NexusIndexer.scan
(IndexingContext context, boolean update) Deprecated.UseIndexer
instead.void
NexusIndexer.scan
(IndexingContext context, String fromPath, ArtifactScanningListener listener, boolean update) Deprecated.UseIndexer
instead.void
NexusIndexer.scan
(IndexingContext context, ArtifactScanningListener listener) Deprecated.UseIndexer
instead.void
NexusIndexer.scan
(IndexingContext context, ArtifactScanningListener listener, boolean update) Deprecated.UseIndexer
instead.void
ArtifactScanningListener.scanningFinished
(IndexingContext ctx, ScanningResult result) void
DefaultScannerListener.scanningFinished
(IndexingContext ctx, ScanningResult result) void
ArtifactScanningListener.scanningStarted
(IndexingContext ctx) void
DefaultScannerListener.scanningStarted
(IndexingContext ctx) DefaultSearchEngine.searchFlat
(Comparator<ArtifactInfo> artifactInfoComparator, IndexingContext indexingContext, org.apache.lucene.search.Query query) Deprecated.SearchEngine.searchFlat
(Comparator<ArtifactInfo> artifactInfoComparator, IndexingContext indexingContext, org.apache.lucene.search.Query query) Deprecated.void
DefaultIndexerEngine.update
(IndexingContext context, ArtifactContext ac) void
IndexerEngine.update
(IndexingContext context, ArtifactContext ac) Replace data for a previously indexed artifactModifier and TypeMethodDescriptionDefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.DefaultNexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, File indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.NexusIndexer.addMergedIndexingContext
(String id, String repositoryId, File repository, org.apache.lucene.store.Directory indexDirectory, boolean searchable, Collection<IndexingContext> contexts) Deprecated.DefaultSearchEngine.forceSearchFlatPaged
(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) SearchEngine.forceSearchFlatPaged
(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search in all contexts, no matter if the context is searchable or notDefaultSearchEngine.forceSearchGrouped
(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) SearchEngine.forceSearchGrouped
(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search in all contexts, no matter if the context is searchable or notDefaultSearchEngine.forceSearchIteratorPaged
(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) SearchEngine.forceSearchIteratorPaged
(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search in all contexts, no matter if the context is searchable or notprotected NexusIndexMultiReader
DefaultSearchEngine.getMergedIndexReader
(Collection<IndexingContext> indexingContexts, boolean ignoreContext) Locks down participating contexts, and returns a "merged" reader of them.protected List<IndexingContext>
DefaultSearchEngine.getParticipatingContexts
(Collection<IndexingContext> indexingContexts, boolean ignoreContext) Returns the list of participating contexts.DefaultIndexer.identify
(File artifact, Collection<IndexingContext> contexts) DefaultIndexer.identify
(org.apache.lucene.search.Query query, Collection<IndexingContext> contexts) DefaultNexusIndexer.identify
(File artifact, Collection<IndexingContext> contexts) Deprecated.DefaultNexusIndexer.identify
(org.apache.lucene.search.Query query, Collection<IndexingContext> contexts) Deprecated.Indexer.identify
(File artifact, Collection<IndexingContext> contexts) Performs an "identity" search.Indexer.identify
(org.apache.lucene.search.Query query, Collection<IndexingContext> contexts) Performs an "identity" search.NexusIndexer.identify
(File artifact, Collection<IndexingContext> contexts) Deprecated.NexusIndexer.identify
(org.apache.lucene.search.Query query, Collection<IndexingContext> contexts) Deprecated.DefaultSearchEngine.searchFlat
(Comparator<ArtifactInfo> artifactInfoComparator, Collection<IndexingContext> indexingContexts, org.apache.lucene.search.Query query) Deprecated.protected int
DefaultSearchEngine.searchFlat
(FlatSearchRequest req, Collection<ArtifactInfo> result, List<IndexingContext> participatingContexts, org.apache.lucene.search.Query query) SearchEngine.searchFlat
(Comparator<ArtifactInfo> artifactInfoComparator, Collection<IndexingContext> indexingContexts, org.apache.lucene.search.Query query) Deprecated.DefaultSearchEngine.searchFlatPaged
(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) protected FlatSearchResponse
DefaultSearchEngine.searchFlatPaged
(FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext) SearchEngine.searchFlatPaged
(FlatSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search only on searchable contextsDefaultSearchEngine.searchGrouped
(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) protected GroupedSearchResponse
DefaultSearchEngine.searchGrouped
(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext) protected int
DefaultSearchEngine.searchGrouped
(GroupedSearchRequest req, Map<String, ArtifactInfoGroup> result, Grouping grouping, List<IndexingContext> participatingContexts, org.apache.lucene.search.Query query) SearchEngine.searchGrouped
(GroupedSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search only on searchable contextsDefaultSearchEngine.searchIteratorPaged
(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) SearchEngine.searchIteratorPaged
(IteratorSearchRequest request, Collection<IndexingContext> indexingContexts) Do the search only on searchable contextsvoid
AbstractSearchRequest.setContexts
(List<IndexingContext> contexts) ModifierConstructorDescriptionDefaultScannerListener
(IndexingContext context, IndexerEngine indexerEngine, boolean update, ArtifactScanningListener listener) FlatSearchRequest
(org.apache.lucene.search.Query query, Comparator<ArtifactInfo> artifactInfoComparator, IndexingContext context) FlatSearchRequest
(org.apache.lucene.search.Query query, IndexingContext context) GroupedSearchRequest
(org.apache.lucene.search.Query query, Grouping grouping, Comparator<String> groupKeyComparator, IndexingContext context) GroupedSearchRequest
(org.apache.lucene.search.Query query, Grouping grouping, IndexingContext context) IteratorSearchRequest
(org.apache.lucene.search.Query query, IndexingContext context) ScanningRequest
(IndexingContext context, ArtifactScanningListener artifactScanningListener) ScanningRequest
(IndexingContext context, ArtifactScanningListener artifactScanningListener, String startingPath) ModifierConstructorDescriptionAbstractSearchPageableRequest
(org.apache.lucene.search.Query query, List<IndexingContext> contexts) AbstractSearchRequest
(org.apache.lucene.search.Query query, List<IndexingContext> contexts) protected
DefaultIteratorResultSet
(IteratorSearchRequest request, NexusIndexMultiSearcher indexSearcher, List<IndexingContext> contexts, org.apache.lucene.search.TopDocs hits) IteratorSearchRequest
(org.apache.lucene.search.Query query, List<IndexingContext> contexts) IteratorSearchRequest
(org.apache.lucene.search.Query query, List<IndexingContext> contexts, ArtifactInfoFilter filter) -
Uses of IndexingContext in org.apache.maven.index.archetype
Modifier and TypeMethodDescriptionprotected abstract List<IndexingContext>
AbstractArchetypeDataSource.getIndexingContexts()
-
Uses of IndexingContext in org.apache.maven.index.context
Modifier and TypeClassDescriptionclass
class
The defaultIndexingContext
implementation.class
A merged indexing context that offers read only "view" on multiple other indexing contexts merged and presented as one.Modifier and TypeMethodDescriptionContextMemberProvider.getMembers()
MergedIndexingContext.getMembers()
StaticContextMemberProvider.getMembers()
Modifier and TypeMethodDescriptionstatic ArtifactInfo
IndexUtils.constructArtifactInfo
(org.apache.lucene.document.Document doc, IndexingContext context) static org.apache.lucene.document.Document
IndexUtils.updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context) static org.apache.lucene.document.Document
IndexUtils.updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified) static org.apache.lucene.document.Document
IndexUtils.updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai) ModifierConstructorDescriptionNexusIndexSearcher
(IndexingContext indexingContext, org.apache.lucene.index.IndexReader reader) NexusIndexSearcherFactory
(IndexingContext context) -
Uses of IndexingContext in org.apache.maven.index.examples.indexing
Modifier and TypeMethodDescriptionvoid
RepositoryIndexer.setIndexingContext
(IndexingContext indexingContext) -
Uses of IndexingContext in org.apache.maven.index.packer
ModifierConstructorDescriptionIndexPackingRequest
(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, File targetDir) -
Uses of IndexingContext in org.apache.maven.index.treeview
ModifierConstructorDescriptionTreeViewRequest
(TreeNodeFactory factory, String path, Map<Field, String> hints, ArtifactInfoFilter artifactInfoFilter, IndexingContext ctx) TreeViewRequest
(TreeNodeFactory factory, String path, IndexingContext ctx) -
Uses of IndexingContext in org.apache.maven.index.updater
Modifier and TypeMethodDescriptionIndexDataReader.readIndex
(org.apache.lucene.index.IndexWriter w, IndexingContext context) IndexDataReader.readIndex
(IndexDataReader.IndexDataReadVisitor visitor, IndexingContext context) Reads index content by using a visitor.DefaultIndexUpdater.unpackIndexData
(InputStream is, int threads, org.apache.lucene.store.Directory d, IndexingContext context) DefaultIndexUpdater.unpackIndexData
(InputStream is, IndexUpdateRequest request, org.apache.lucene.store.Directory d, IndexingContext context) void
IndexUpdateSideEffect.updateIndex
(org.apache.lucene.store.Directory directory, IndexingContext context, boolean partial) Given a full or partial (see context partial parameter) lucene index (directory + context it has been integrated into), this can let other participants (implementations of this type) know about the update.int
IndexDataWriter.write
(IndexingContext context, org.apache.lucene.index.IndexReader indexReader, List<Integer> docIndexes) void
IndexDataWriter.writeGroupFields
(IndexingContext context) void
IndexDataWriter.writeHeader
(IndexingContext context) ModifierConstructorDescriptionIndexUpdateRequest
(IndexingContext context, ResourceFetcher resourceFetcher) -
Uses of IndexingContext in org.apache.maven.search.backend.indexer
Modifier and TypeMethodDescriptionIndexerCoreSearchBackend.getIndexingContext()
Returns theIndexingContext
used by this search backend, nevernull
.Modifier and TypeMethodDescriptionIndexerCoreSearchBackendFactory.createIndexerCoreSearchBackend
(IndexingContext indexingContext) CreatesIndexerCoreSearchBackend
instance using passed in context. -
Uses of IndexingContext in org.apache.maven.search.backend.indexer.internal
ModifierConstructorDescriptionIndexerCoreSearchBackendImpl
(Indexer indexer, IndexingContext indexingContext) Creates backend instance using provided indexer and context.
Indexer
instead.