|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.jb.pliny.lucene.NoteTextIndex
This is a singleton class that manages the interface between Lucene and Pliny to support word searching in Pliny notes.
NoteLucened
,
NoteSearchView
Method Summary | |
void |
addNoteToIndex(NoteLucened myNote)
adds information about a new NoteLucened to the Lucene index. |
void |
buildIndex(org.eclipse.core.runtime.IProgressMonitor monitor)
builds the Lucene index, and provides support for the display of a progress monitor to the user. |
static NoteTextIndex |
getInstance()
returns the singleton instance of this class. |
boolean |
isIndexOn()
returns true of the index has been set up. |
void |
removeNoteFromIndex(NoteLucened myNote)
removes information about a new NoteLucened from the Lucene index. |
Vector |
search(String queryString)
passes the query string to Lucene, takes results, and locates selected NoteLuucened which are then assembled into a Vector and returned. |
void |
updateNoteInIndex(NoteLucened myNote)
updates the name or content of a NoteLucened in the Lucene index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static NoteTextIndex getInstance()
public boolean isIndexOn()
true
if index has been set up.public void buildIndex(org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException
monitor
- the monitor to be displayed to the user while s/he waits.
IOException
public void addNoteToIndex(NoteLucened myNote)
myNote
- the new note to be added.public void removeNoteFromIndex(NoteLucened myNote)
myNote
- the new note to be removed from the Lucene index.public void updateNoteInIndex(NoteLucened myNote)
myNote
- note with name of content that has changedpublic Vector search(String queryString) throws org.apache.lucene.queryParser.ParseException
queryString
- the Lucene query string.
org.apache.lucene.queryParser.ParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |