| java.lang.Object com.sun.portal.search.db.NovaDb
NovaDb | public class NovaDb implements RDMDb(Code) | | Searchengine interface implementation using SunLabs Nova search engine.
|
Method Summary | |
public void | close(SToken st) | public int | count(SToken st, RDMTransaction t) | public void | delete(SToken st, SOIF s, Set view, int flags, RDMTransaction t) | public void | delete(SToken st, SOIFInputStream ss, Set view, int flags, RDMTransaction t) Delete a SOIF stream. | public SOIF | fetch(SToken st, String url, int flags, RDMTransaction t) | public SOIF | fetch(SToken st, String url, Set view, int flags, RDMTransaction t) | public static String | getSOIFKey(SOIF s) Gets the document key from a SOIF. | public void | housekeep() | public void | indexBatch(SToken st) | protected void | load_schema_index_attrs(String objectType, Properties config) | public void | open(SToken st, String rootdir, String dbname, int rw, int mode) | public void | optimize(SToken st) | public int | purge(SToken st, RDMTransaction t) | public void | recover(SToken st, String dbhome, boolean fatal) | public RDMResultSet | search(SToken st, String qry, int numHits, Set view, String sortOrder, RDMTransaction t) | public void | setIndexBatchSize(SToken st, int n) | public static void | setSaveData(boolean sD) Determines whether we will save data directly into Nova, or use BDB. | public static Map | soifToIndexableMap(SOIF s) Turns a SOIF into a map, suitable for indexing or
highlighting. | public void | store(SToken st, SOIF s, Set view, int flags, RDMTransaction t) | public void | update(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) |
engine | SearchEngine engine(Code) | | |
maxBatchSize | static int maxBatchSize(Code) | | |
queryThreads | int queryThreads(Code) | | |
saveData | static boolean saveData(Code) | | |
getSOIFKey | public static String getSOIFKey(SOIF s)(Code) | | Gets the document key from a SOIF. For taxonomy documents, this is
the ID, while for normal documents, it is the URL.
|
open | public void open(SToken st, String rootdir, String dbname, int rw, int mode) throws RDMException(Code) | | open -- Opens a database
- rootdir -- db home dir
- dbname -- name of database from root.db (e.g., default)
- rw -- RDMDb.WRITER or RDMDb.WRCREAT or RDMDb.READER
- mode -- Unix mode
Parameters: st - Parameters: rootdir - Parameters: dbname - Parameters: rw - Parameters: mode - throws: RDMException - |
setSaveData | public static void setSaveData(boolean sD)(Code) | | Determines whether we will save data directly into Nova, or use BDB.
|
soifToIndexableMap | public static Map soifToIndexableMap(SOIF s)(Code) | | Turns a SOIF into a map, suitable for indexing or
highlighting.
|
|
|