Class LuceneSearchBackend
- java.lang.Object
-
- org.jenkinsci.plugins.lucene.search.databackend.SearchBackend<org.apache.lucene.document.Document>
-
- org.jenkinsci.plugins.lucene.search.databackend.LuceneSearchBackend
-
public class LuceneSearchBackend extends SearchBackend<org.apache.lucene.document.Document>
-
-
Constructor Summary
Constructors Constructor Description LuceneSearchBackend(File indexPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanAllJob(ManagerProgress progress)
void
close()
static LuceneSearchBackend
create(Map<String,Object> config)
void
deleteJob(String jobName)
static String
escapeQuery(String q)
boolean
findRunIndex(Run<?,?> run)
List<FreeTextSearchItemImplementation>
getHits(String q, boolean searchNext)
org.apache.lucene.search.Query
getRunQuery(Run<?,?> run)
SearchBackend<org.apache.lucene.document.Document>
reconfigure(Map<String,Object> newConfig)
void
removeBuild(Run<?,?> run)
void
storeBuild(Run<?,?> run)
-
Methods inherited from class org.jenkinsci.plugins.lucene.search.databackend.SearchBackend
abort, getAllDefaultSearchableFields, getAllFields, rebuildDatabase, rebuildJob, start
-
-
-
-
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<org.apache.lucene.document.Document> reconfigure(Map<String,Object> newConfig)
- Specified by:
reconfigure
in classSearchBackend<org.apache.lucene.document.Document>
-
close
public void close()
- Specified by:
close
in classSearchBackend<org.apache.lucene.document.Document>
-
getHits
public List<FreeTextSearchItemImplementation> getHits(String q, boolean searchNext)
- Specified by:
getHits
in classSearchBackend<org.apache.lucene.document.Document>
-
storeBuild
public void storeBuild(Run<?,?> run) throws IOException
- Specified by:
storeBuild
in classSearchBackend<org.apache.lucene.document.Document>
- Throws:
IOException
-
getRunQuery
public org.apache.lucene.search.Query getRunQuery(Run<?,?> run) throws org.apache.lucene.queryparser.classic.ParseException
- Throws:
org.apache.lucene.queryparser.classic.ParseException
-
findRunIndex
public boolean findRunIndex(Run<?,?> run)
- Specified by:
findRunIndex
in classSearchBackend<org.apache.lucene.document.Document>
-
removeBuild
public void removeBuild(Run<?,?> run) throws IOException
- Specified by:
removeBuild
in classSearchBackend<org.apache.lucene.document.Document>
- Throws:
IOException
-
deleteJob
public void deleteJob(String jobName) throws IOException
- Specified by:
deleteJob
in classSearchBackend<org.apache.lucene.document.Document>
- Throws:
IOException
-
cleanAllJob
public void cleanAllJob(ManagerProgress progress)
- Specified by:
cleanAllJob
in classSearchBackend<org.apache.lucene.document.Document>
-
-