public class LuceneSearchBackend extends SearchBackend<org.apache.lucene.document.Document>
| Constructor and Description |
|---|
LuceneSearchBackend(File indexPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanDeletedBuilds(Progress progress,
hudson.model.Job job) |
void |
cleanDeletedJobs(Progress progress) |
void |
close() |
static LuceneSearchBackend |
create(Map<String,Object> config) |
void |
deleteJob(String jobName) |
List<SearchFieldDefinition> |
getAllFieldDefinitions() |
List<FreeTextSearchItemImplementation> |
getHits(String query,
boolean includeHighlights) |
SearchBackend |
reconfigure(Map<String,Object> newConfig) |
org.apache.lucene.document.Document |
removeBuild(hudson.model.AbstractBuild<?,?> build) |
void |
storeBuild(hudson.model.AbstractBuild<?,?> build,
org.apache.lucene.document.Document oldDoc) |
getAllDefaultSearchableFields, getAllFields, getEngine, rebuildDatabase, rebuildJobpublic LuceneSearchBackend(File indexPath) throws IOException
IOExceptionpublic static LuceneSearchBackend create(Map<String,Object> config)
public SearchBackend reconfigure(Map<String,Object> newConfig)
reconfigure in class SearchBackend<org.apache.lucene.document.Document>public void close()
public List<FreeTextSearchItemImplementation> getHits(String query, boolean includeHighlights)
getHits in class SearchBackend<org.apache.lucene.document.Document>public void storeBuild(hudson.model.AbstractBuild<?,?> build,
org.apache.lucene.document.Document oldDoc)
throws IOException
storeBuild in class SearchBackend<org.apache.lucene.document.Document>IOExceptionpublic org.apache.lucene.document.Document removeBuild(hudson.model.AbstractBuild<?,?> build)
removeBuild in class SearchBackend<org.apache.lucene.document.Document>public void cleanDeletedBuilds(Progress progress, hudson.model.Job job)
cleanDeletedBuilds in class SearchBackend<org.apache.lucene.document.Document>public void deleteJob(String jobName)
deleteJob in class SearchBackend<org.apache.lucene.document.Document>public List<SearchFieldDefinition> getAllFieldDefinitions() throws IOException
getAllFieldDefinitions in class SearchBackend<org.apache.lucene.document.Document>IOExceptionpublic void cleanDeletedJobs(Progress progress)
cleanDeletedJobs in class SearchBackend<org.apache.lucene.document.Document>Copyright © 2004-2015. All Rights Reserved.