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 URL under which the entity is indexed.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 URL under which the entity is indexed.- Returns:
- the URL
-
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
-