|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Indexer
API for rebuilding a search index.
Method Summary | |
---|---|
void |
commitUpdate()
Commit a transaction. |
void |
createDocument(java.util.UUID id,
ResourcePath path,
ResourceName name,
java.lang.String title,
java.util.Set<java.lang.String> tags,
java.lang.String content,
java.util.Set<Paragraph> paragraphs)
Add a document to the search index. |
TextExtractor |
createExtractor(MimeType mimeType)
Creates a text extractor for PDF, Word and plain text files. |
void |
rollbackUpdate()
Roll back a transaction. |
void |
startUpdate()
Start a transaction. |
Method Detail |
---|
void startUpdate()
void commitUpdate()
void rollbackUpdate()
void createDocument(java.util.UUID id, ResourcePath path, ResourceName name, java.lang.String title, java.util.Set<java.lang.String> tags, java.lang.String content, java.util.Set<Paragraph> paragraphs)
id
- The resource's ID.path
- The resource's absolute path.name
- The resource's name.title
- The resource's title.tags
- The resource's tags.content
- The document's content.paragraphs
- The paragraphs of the document.TextExtractor createExtractor(MimeType mimeType)
mimeType
- MimeType used to match the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |