org.jenkinsci.plugins.lucene.search.databackend
Class LuceneSearchBackend

java.lang.Object
  extended by org.jenkinsci.plugins.lucene.search.databackend.SearchBackend
      extended by org.jenkinsci.plugins.lucene.search.databackend.LuceneSearchBackend

public class LuceneSearchBackend
extends SearchBackend


Constructor Summary
LuceneSearchBackend(File indexPath)
           
 
Method Summary
 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<FreeTextSearchItemImplementation> getHits(String query, boolean includeHighlights)
           
 SearchBackend reconfigure(Map<String,Object> newConfig)
           
 void removeBuild(hudson.model.AbstractBuild<?,?> build)
           
 void storeBuild(hudson.model.AbstractBuild<?,?> build)
           
 
Methods inherited from class org.jenkinsci.plugins.lucene.search.databackend.SearchBackend
getAllDefaultSearchableFields, getAllFields, getEngine, rebuildDatabase, rebuildJob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchBackend

public LuceneSearchBackend(File indexPath)
                    throws IOException
Throws:
IOException
Method Detail

create

public static LuceneSearchBackend create(Map<String,Object> config)

reconfigure

public SearchBackend reconfigure(Map<String,Object> newConfig)
Specified by:
reconfigure in class SearchBackend

close

public void close()

getHits

public List<FreeTextSearchItemImplementation> getHits(String query,
                                                      boolean includeHighlights)
Specified by:
getHits in class SearchBackend

storeBuild

public void storeBuild(hudson.model.AbstractBuild<?,?> build)
                throws IOException
Specified by:
storeBuild in class SearchBackend
Throws:
IOException

removeBuild

public void removeBuild(hudson.model.AbstractBuild<?,?> build)
Specified by:
removeBuild in class SearchBackend

cleanDeletedBuilds

public void cleanDeletedBuilds(Progress progress,
                               hudson.model.Job job)
Specified by:
cleanDeletedBuilds in class SearchBackend

deleteJob

public void deleteJob(String jobName)
Specified by:
deleteJob in class SearchBackend

cleanDeletedJobs

public void cleanDeletedJobs(Progress progress)
Specified by:
cleanDeletedJobs in class SearchBackend


Copyright © 2004-2015. All Rights Reserved.