|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRIndex<O extends org.ajmm.obsearch.OB>
IRIndex holds the basic functionality for an Information Retrieval system that works on OB objects (please see obsearch.berlios.de). By using a distance function d, we transform the queries in terms of the closest elements that are in the database, and once this transformation is performed, we utilize an information retrieval system to perform the matching. Because our documents are multi-sets, the distribution of OB objects inside a document is taken into account. So, instead of matching a huge syntax tree of for example, music, we cut a song into pieces, match the pieces and then the overall finger-print of the multi-set of OB objects is matched.
Method Summary | |
---|---|
void |
close()
Closes the databases. |
int |
delete(java.lang.String documentName)
Deletes the given string document from the database. |
void |
freeze()
Freezes the index. |
org.ajmm.obsearch.Index<O> |
getIndex()
Returns the underlying OBSearch index. |
float |
getMSetScoreThreshold()
The M-set score threshold is the minimum naive score for multi-sets that the index will accept. |
float |
getSetScoreThreshold()
* The Set score threshold is the minimum naive score for Sets that the index will accept. |
int |
getSize()
Returns the number of documents stored in this index. |
int |
getWordsSize()
Returns the count different words that are used by the documents indexed. |
void |
insert(Document<O> document)
Inserts a new document into the database. |
boolean |
isValidationMode()
Tells whether or not the index is in validation mode. |
void |
setMSetScoreThreshold(float setScoreThreshold)
The M-set score threshold is the minimum naive score for multi-sets that the index will accept. |
void |
setSetScoreThreshold(float setScoreThreshold)
The Set score threshold is the minimum naive score for Sets that the index will accept. |
void |
setValidationMode(boolean validationMode)
Sets whether or not the index is in validation mode. |
boolean |
shouldSkipDoc(Document<O> x)
Returns true if the document corresponding to x's name exists in the DB. |
Method Detail |
---|
void insert(Document<O> document) throws IRException
document
- The document to be inserted.
IRException
- If something goes wrong with the IR engine or with
OBSearch.int delete(java.lang.String documentName) throws IRException
IRException
- If something goes wrong with the IR engine or with
OBSearch.org.ajmm.obsearch.Index<O> getIndex()
void freeze() throws IRException
IRException
- If something goes wrong with the IR engine or with
OBSearch.void close() throws IRException
IRException
- If something goes wrong with the IR engine or with
OBSearch.int getSize()
boolean shouldSkipDoc(Document<O> x) throws java.io.IOException
x
-
java.io.IOException
float getMSetScoreThreshold()
void setMSetScoreThreshold(float setScoreThreshold)
setScoreThreshold
- the new thresholdfloat getSetScoreThreshold()
void setSetScoreThreshold(float setScoreThreshold)
setScoreThreshold
- the new thresholdint getWordsSize() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
boolean isValidationMode()
void setValidationMode(boolean validationMode)
validationMode
- The new validation mode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |