Interface Searchable
- All Known Implementing Classes:
ArchiveFile,Author,GuestBook,License,Mirrors,Pkg,TexArchiveNotes,Topic
public interface Searchable
The class
Searchable contains a marker interface for entities
which should be indexed for searching.-
Method Summary
Modifier and TypeMethodDescriptiongetId()The methodgetIdprovides means to retrieve the id.The methodindexPathprovides means to retrieve the directory containing the index files.voidremove(IndexingSession session) The methodremoveprovides means to remove the entity from the search index.voidupdateIndex(IndexingSession session) The methodupdateIndexprovides means to update the entity in the search index.
-
Method Details
-
getId
Long getId()The methodgetIdprovides means to retrieve the id.- Returns:
- the id
-
indexPath
String indexPath()The methodindexPathprovides means to retrieve the directory containing the index files.- Returns:
- the index directory
-
remove
The methodremoveprovides means to remove the entity from the search index.- Parameters:
session- the session- Throws:
IOException- in case of an I/O error
-
updateIndex
void updateIndex(IndexingSession session) throws org.apache.lucene.index.CorruptIndexException, IOException The methodupdateIndexprovides means to update the entity in the search index.- Parameters:
session- the session- Throws:
IOException- in case of an I/O errororg.apache.lucene.index.CorruptIndexException- in case of an error
-