org.hibernate.search.bridge.builtin
Class TikaBridge
java.lang.Object
org.hibernate.search.bridge.builtin.TikaBridge
- All Implemented Interfaces:
- FieldBridge
public class TikaBridge
- extends Object
- implements FieldBridge
Bridge implementation which uses Apache Tika to extract data from provided input.
- Author:
- Hardy Ferentschik
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TikaBridge
public TikaBridge()
setParseContextProviderClass
public void setParseContextProviderClass(Class<?> parseContextProviderClass)
setMetadataProcessorClass
public void setMetadataProcessorClass(Class<?> metadataProcessorClass)
set
public void set(String name,
Object value,
org.apache.lucene.document.Document document,
LuceneOptions luceneOptions)
- Description copied from interface:
FieldBridge
- Manipulate the document to index the given value.
A common implementation is to add a Field with the given
name to document following
the parameters luceneOptions if the value is not null.
{code}
String fieldValue = convertToString(value);
luceneOptions.addFieldToDocument(name, fieldValue, document);
{code}
- Specified by:
set in interface FieldBridge
- Parameters:
name - The field to add to the Lucene documentvalue - The actual value to indexdocument - The Lucene document into which we want to index the value.luceneOptions - Contains the parameters used for adding value to
the Lucene document.
Copyright © 2006-2013 Hibernate. All Rights Reserved.