@Component(role=IndexerEngine.class) public class DefaultIndexerEngine extends org.codehaus.plexus.logging.AbstractLogEnabled implements IndexerEngine
IndexerEngine implementation.| Constructor and Description |
|---|
DefaultIndexerEngine() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
equals(org.apache.lucene.document.Document d1,
org.apache.lucene.document.Document d2) |
private org.apache.lucene.document.Document |
getOldDocument(IndexingContext context,
ArtifactContext ac) |
void |
index(IndexingContext context,
ArtifactContext ac)
Add new artifact to the index
|
void |
remove(IndexingContext context,
ArtifactContext ac)
Remove artifact to the index
|
private java.util.Map<java.lang.String,java.lang.String> |
toMap(org.apache.lucene.document.Document d) |
void |
update(IndexingContext context,
ArtifactContext ac)
Replace data for a previously indexed artifact
|
private void |
updateGroups(IndexingContext context,
ArtifactContext ac) |
public void index(IndexingContext context, ArtifactContext ac) throws java.io.IOException
IndexerEngineindex in interface IndexerEnginejava.io.IOExceptionpublic void update(IndexingContext context, ArtifactContext ac) throws java.io.IOException
IndexerEngineupdate in interface IndexerEnginejava.io.IOExceptionpublic void remove(IndexingContext context, ArtifactContext ac) throws java.io.IOException
IndexerEngineremove in interface IndexerEnginejava.io.IOExceptionprivate boolean equals(org.apache.lucene.document.Document d1,
org.apache.lucene.document.Document d2)
private java.util.Map<java.lang.String,java.lang.String> toMap(org.apache.lucene.document.Document d)
private org.apache.lucene.document.Document getOldDocument(IndexingContext context, ArtifactContext ac)
private void updateGroups(IndexingContext context, ArtifactContext ac) throws java.io.IOException
java.io.IOException