public interface IndexCreator
MinimalArtifactInfoIndexCreator
,
JarFileContentsIndexCreator
Modifier and Type | Method and Description |
---|---|
List<String> |
getCreatorDependencies()
Returns list of IndexCreator IDs that this creator depends on.
|
String |
getId()
Returns IndexCreator ID, that has to be unique across all existing creators.
|
Collection<IndexerField> |
getIndexerFields()
Returns the indexer fields that this IndexCreator introduces to index.
|
void |
populateArtifactInfo(ArtifactContext artifactContext)
Populate an
ArtifactContext with information about corresponding artifact. |
boolean |
updateArtifactInfo(org.apache.lucene.document.Document document,
ArtifactInfo artifactInfo)
Update an
ArtifactInfo from given Lucene Document . |
void |
updateDocument(ArtifactInfo artifactInfo,
org.apache.lucene.document.Document document)
Update Lucene
Document from a given ArtifactInfo . |
String getId()
List<String> getCreatorDependencies()
Collection<IndexerField> getIndexerFields()
void populateArtifactInfo(ArtifactContext artifactContext) throws IOException
ArtifactContext
with information about corresponding artifact.IOException
void updateDocument(ArtifactInfo artifactInfo, org.apache.lucene.document.Document document)
Document
from a given ArtifactInfo
.boolean updateArtifactInfo(org.apache.lucene.document.Document document, ArtifactInfo artifactInfo)
ArtifactInfo
from given Lucene Document
.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.