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 methodgetId
provides means to retrieve the id.The methodindexPath
provides means to retrieve the directory containing the index files.void
remove
(IndexingSession session) The methodremove
provides means to remove the entity from the search index.void
updateIndex
(IndexingSession session) The methodupdateIndex
provides means to update the entity in the search index.
-
Method Details
-
getId
Long getId()The methodgetId
provides means to retrieve the id.- Returns:
- the id
-
indexPath
String indexPath()The methodindexPath
provides means to retrieve the directory containing the index files.- Returns:
- the index directory
-
remove
The methodremove
provides 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 methodupdateIndex
provides 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
-