Package org.apache.wiki.search.tika
Class TikaSearchProvider
- java.lang.Object
-
- org.apache.wiki.search.LuceneSearchProvider
-
- org.apache.wiki.search.tika.TikaSearchProvider
-
- All Implemented Interfaces:
WikiProvider
,SearchProvider
public class TikaSearchProvider extends LuceneSearchProvider
Search provider that extends {link LuceneSearchProvider} using Apache Tika for indexing attachment content.- Since:
- 2.11.0
- See Also:
- JSPWIKI-469
-
-
Field Summary
-
Fields inherited from class org.apache.wiki.search.LuceneSearchProvider
FLAG_CONTEXTS, log, LUCENE_ATTACHMENTS, LUCENE_AUTHOR, LUCENE_ID, LUCENE_PAGE_CONTENTS, LUCENE_PAGE_KEYWORDS, LUCENE_PAGE_NAME, m_updates, MAX_SEARCH_HITS, PROP_LUCENE_ANALYZER, SEARCHABLE_FILE_SUFFIXES
-
Fields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION
-
-
Constructor Summary
Constructors Constructor Description TikaSearchProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getAttachmentContent(Attachment att)
-
Methods inherited from class org.apache.wiki.search.LuceneSearchProvider
doFullLuceneReindex, findPages, findPages, getAttachmentContent, getEngine, getProviderInfo, initialize, luceneIndexPage, pageRemoved, reindexPage, updateLuceneIndex
-
-
-
-
Constructor Detail
-
TikaSearchProvider
public TikaSearchProvider()
-
-
Method Detail
-
getAttachmentContent
protected java.lang.String getAttachmentContent(Attachment att)
- Overrides:
getAttachmentContent
in classLuceneSearchProvider
- Parameters:
att
- Attachment to get content for. Filename extension is used to determine the type of the attachment.- Returns:
- String representing the content of the file.
-
-