@Singleton @Named public class DefaultIndexerEngine extends java.lang.Object 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
IndexerEngine
index
in interface IndexerEngine
java.io.IOException
public void update(IndexingContext context, ArtifactContext ac) throws java.io.IOException
IndexerEngine
update
in interface IndexerEngine
java.io.IOException
public void remove(IndexingContext context, ArtifactContext ac) throws java.io.IOException
IndexerEngine
remove
in interface IndexerEngine
java.io.IOException
private 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