public class FullTextBridge extends BridgeHelper
DetailsFieldBridge, and further delegates to
 classes as defined under "SearchBridges".| Modifier and Type | Field and Description | 
|---|---|
| protected Class<org.hibernate.search.bridge.FieldBridge>[] | classes | 
| protected OriginalFilesService | files | 
| protected Map<String,FileParser> | parsers | 
COMBINED, log, publisher| Constructor and Description | 
|---|
| FullTextBridge()Since this constructor provides the instance with no way of parsing
  OriginalFilebinaries, all files will be assumed to have blank
 content. | 
| FullTextBridge(OriginalFilesService files,
              Map<String,FileParser> parsers)Constructor which provides an empty set of custom
  bridges. | 
| FullTextBridge(OriginalFilesService files,
              Map<String,FileParser> parsers,
              Class<org.hibernate.search.bridge.FieldBridge>[] bridgeClasses)Main constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | set_annotations(String name,
               IObject object,
               org.apache.lucene.document.Document document,
               org.hibernate.search.bridge.LuceneOptions opts)Walks the various  Annotationinstances attached to the object
 argument and adds various levels to the index. | 
| void | set_custom(String name,
          IObject object,
          org.apache.lucene.document.Document document,
          org.hibernate.search.bridge.LuceneOptions opts)Loops over each  field bridge classand calls itsFieldBridge.set(String, Object, Document, LuceneOptions)method. | 
| void | set_details(String name,
           IObject object,
           org.apache.lucene.document.Document document,
           org.hibernate.search.bridge.LuceneOptions opts)Parses all ownership and time-based details to the index for the given
 object. | 
| void | set_file(String name,
        IObject object,
        org.apache.lucene.document.Document document,
        org.hibernate.search.bridge.LuceneOptions opts)Uses  BridgeHelper.parse(OriginalFile, OriginalFilesService, Map)to get aReaderfor the given
 file which is then passed toBridgeHelper.addContents(Document, String, OriginalFile, OriginalFilesService, Map, LuceneOptions)using the field name "file". | 
| void | set(String name,
   Object value,
   org.apache.lucene.document.Document document,
   org.hibernate.search.bridge.LuceneOptions opts)Default implementation of the
  set(String, Object, Document, LuceneOptions)method which callsset_file(String, IObject, Document, LuceneOptions)set_annotations(String, IObject, Document, LuceneOptions),set_details(String, IObject, Document, LuceneOptions),
 and finallyset_custom(String, IObject, Document, LuceneOptions). | 
add, addContents, getProxiedObject, logger, parse, reindex, reindexAll, setApplicationEventPublisherprotected final OriginalFilesService files
protected final Map<String,FileParser> parsers
protected final Class<org.hibernate.search.bridge.FieldBridge>[] classes
public FullTextBridge()
OriginalFile binaries, all files will be assumed to have blank
 content. Further, no custom bridges are provided and so only the default
 indexing will take place.public FullTextBridge(OriginalFilesService files, Map<String,FileParser> parsers)
bridges.public FullTextBridge(OriginalFilesService files, Map<String,FileParser> parsers, Class<org.hibernate.search.bridge.FieldBridge>[] bridgeClasses)
files - OriginalFilesService for getting access to binary files.parsers - List of FileParser instances which are currently
            configured.bridgeClasses - set of bridge classes which will be
            instantiated via a no-arg constructor.public void set(String name, Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
set(String, Object, Document, LuceneOptions)
 method which calls
 set_file(String, IObject, Document, LuceneOptions)
 set_annotations(String, IObject, Document, LuceneOptions),
 set_details(String, IObject, Document, LuceneOptions),
 and finally
 set_custom(String, IObject, Document, LuceneOptions).
 as well as all annotations.set in interface org.hibernate.search.bridge.FieldBridgeset in class BridgeHelperpublic void set_file(String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
BridgeHelper.parse(OriginalFile, OriginalFilesService, Map)
 to get a Reader for the given
 file which is then passed to
 BridgeHelper.addContents(Document, String, OriginalFile, OriginalFilesService, Map, LuceneOptions)
 using the field name "file".name - object - document - opts - public void set_annotations(String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Annotation instances attached to the object
 argument and adds various levels to the index.name - object - document - opts - public void set_details(String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
name - object - document - opts - public void set_custom(String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
field bridge class and calls its
 FieldBridge.set(String, Object, Document, LuceneOptions)
 method. Any exceptions are logged but do not cancel execution.name - object - document - opts - 
                
                
Version: 5.2.5-ice35-b28
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.