public class LuceneSearchBackend extends SearchBackend<org.apache.lucene.document.Document>
| Constructor and Description |
|---|
LuceneSearchBackend(File indexPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanAllJob(ManagerProgress progress) |
void |
close() |
static LuceneSearchBackend |
create(Map<String,Object> config) |
void |
deleteJob(String jobName) |
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) |
abort, getAllDefaultSearchableFields, getAllFields, rebuildDatabase, rebuildJob, startpublic LuceneSearchBackend(File indexPath) throws IOException
IOExceptionpublic static LuceneSearchBackend create(Map<String,Object> config)
public SearchBackend<org.apache.lucene.document.Document> reconfigure(Map<String,Object> newConfig)
reconfigure in class SearchBackend<org.apache.lucene.document.Document>public void close()
close in class SearchBackend<org.apache.lucene.document.Document>public List<FreeTextSearchItemImplementation> getHits(String q, boolean searchNext)
getHits in class SearchBackend<org.apache.lucene.document.Document>public void storeBuild(Run<?,?> run) throws IOException
storeBuild in class SearchBackend<org.apache.lucene.document.Document>IOExceptionpublic org.apache.lucene.search.Query getRunQuery(Run<?,?> run) throws org.apache.lucene.queryparser.classic.ParseException
org.apache.lucene.queryparser.classic.ParseExceptionpublic boolean findRunIndex(Run<?,?> run)
findRunIndex in class SearchBackend<org.apache.lucene.document.Document>public void removeBuild(Run<?,?> run) throws IOException
removeBuild in class SearchBackend<org.apache.lucene.document.Document>IOExceptionpublic void deleteJob(String jobName) throws IOException
deleteJob in class SearchBackend<org.apache.lucene.document.Document>IOExceptionpublic void cleanAllJob(ManagerProgress progress)
cleanAllJob in class SearchBackend<org.apache.lucene.document.Document>Copyright © 2016–2021. All rights reserved.