org.paneris.bibliomania.fti
Class IndexOther
java.lang.Object
org.paneris.bibliomania.fti.IndexOther
public class IndexOther
- extends java.lang.Object
Constructor Summary |
IndexOther(java.io.File dbHome)
|
IndexOther(java.io.File dbHome,
java.util.Properties config)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wordTruncationLength
public static final int wordTruncationLength
- See Also:
- Constant Field Values
contextWordsBeforeHit
public static final int contextWordsBeforeHit
- See Also:
- Constant Field Values
tiBytesLength
public static final int tiBytesLength
- See Also:
- Constant Field Values
debug
public static boolean debug
IndexOther
public IndexOther(java.io.File dbHome)
throws java.io.IOException,
com.sleepycat.db.DatabaseException,
org.melati.util.PropertyException
- Throws:
java.io.IOException
com.sleepycat.db.DatabaseException
org.melati.util.PropertyException
IndexOther
public IndexOther(java.io.File dbHome,
java.util.Properties config)
throws java.io.IOException,
com.sleepycat.db.DatabaseException,
org.melati.util.PropertyException
- Throws:
java.io.IOException
com.sleepycat.db.DatabaseException
org.melati.util.PropertyException
idOfWord
public int idOfWord(java.lang.String word)
throws FTIException,
com.sleepycat.db.DatabaseException
- Throws:
FTIException
com.sleepycat.db.DatabaseException
setTI
public static void setTI(byte[] bytes,
long textID,
int index)
getTI_textID
public static long getTI_textID(byte[] bytes)
unIndex
public void unIndex(long textID)
throws FTIException,
com.sleepycat.db.DatabaseException
- Throws:
FTIException
com.sleepycat.db.DatabaseException
index
public void index(Text text)
throws FTIException,
java.io.IOException,
com.sleepycat.db.DatabaseException
- Throws:
FTIException
java.io.IOException
com.sleepycat.db.DatabaseException
andSearchResults
public SearchResults andSearchResults(java.lang.String[] args)
throws FTIException,
com.sleepycat.db.DatabaseException
- Throws:
FTIException
com.sleepycat.db.DatabaseException
groupSearchResults
public SearchResults groupSearchResults(java.lang.String[] args)
throws FTIException,
com.sleepycat.db.DatabaseException
- Throws:
FTIException
com.sleepycat.db.DatabaseException
blockmarkerBeforeFirstOccurrence
public java.lang.String blockmarkerBeforeFirstOccurrence(long textID,
java.lang.String word)
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
stat
public void stat()
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
flush
public void flush()
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
close
public void close()
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
appendTerms
public void appendTerms(java.util.Vector terms,
java.lang.String query,
boolean keywords)
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
querySearchResults
public SearchResults querySearchResults(java.lang.String textQuery,
java.lang.String keywordsQuery)
throws com.sleepycat.db.DatabaseException,
FTIException
- Throws:
com.sleepycat.db.DatabaseException
FTIException
querySearchResults
public SearchResults querySearchResults(java.lang.String query)
throws com.sleepycat.db.DatabaseException,
FTIException
- Throws:
com.sleepycat.db.DatabaseException
FTIException
allEntries
public IndexCursor allEntries()
throws com.sleepycat.db.DatabaseException
- Throws:
com.sleepycat.db.DatabaseException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2000-2009 PanEris. All Rights Reserved.