|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectokapi.util.OkapiSearchUtils
public class OkapiSearchUtils
Search utilities
| Nested Class Summary | |
|---|---|
static class |
OkapiSearchUtils.Searcher
class Searcher Class to perform searching and incremental index updates. |
static class |
OkapiSearchUtils.SearchIndexer
class SearchIndexer Class to perform indexing. |
static class |
OkapiSearchUtils.SearchResult
class SearchResult Class to hold a single search result. |
| Constructor Summary | |
|---|---|
OkapiSearchUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
doesIndexExist()
doesIndexExist Checks whether index exists. |
static boolean |
doesIndexRootDirectoryExist()
doesIndexRootDirectoryExist Checks whether the root index directory exists. |
static OkapiSearchUtils.Searcher |
getSearcher()
getSearcher Creates and returns a Searcher. |
static OkapiSearchUtils.SearchIndexer |
getSearchIndexer()
getSearchIndexer Creates and returns a SearchIndexer, if one has not already been given out. |
static boolean |
isIndexingInProgress()
isIndexingInProgress Checks whether indexing is going on right now. |
static void |
releaseSearcher(OkapiSearchUtils.Searcher s)
releaseSearcher Returns a Searcher after use. |
static void |
releaseSearchIndexer(OkapiSearchUtils.SearchIndexer si)
releaseSearchIndexer Returns a SearchIndexer after use. |
static void |
setIndexParameters(java.lang.String rootPath,
int pagesPerPDF,
int termsPerField)
setIndexParameters Sets index paths, jpedal path, and other search parameters. |
static void |
setIndexParametersFromContext(javax.servlet.ServletContext context)
setIndexParametersFromContext Gets parameters from web.xml and stores them in static variables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OkapiSearchUtils()
| Method Detail |
|---|
public static void setIndexParametersFromContext(javax.servlet.ServletContext context)
context - servlet context
public static void setIndexParameters(java.lang.String rootPath,
int pagesPerPDF,
int termsPerField)
rootPath - path to root index directorypagesPerPDF - number of pages to index per PDF file (-1 to use default)termsPerField - number of terms per field to index (-1 to use default)public static boolean doesIndexRootDirectoryExist()
public static boolean doesIndexExist()
public static boolean isIndexingInProgress()
public static OkapiSearchUtils.SearchIndexer getSearchIndexer()
public static void releaseSearchIndexer(OkapiSearchUtils.SearchIndexer si)
public static OkapiSearchUtils.Searcher getSearcher()
public static void releaseSearcher(OkapiSearchUtils.Searcher s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||