@Deprecated public class FullTextBridge extends BridgeHelper
DetailsFieldBridge
, and further delegates to
classes as defined under "SearchBridges".Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<org.hibernate.search.bridge.FieldBridge>[] |
classes
Deprecated.
|
protected OriginalFilesService |
files
Deprecated.
|
protected java.util.Map<java.lang.String,FileParser> |
parsers
Deprecated.
|
COMBINED, log, publisher
Constructor and Description |
---|
FullTextBridge()
Deprecated.
Since this constructor provides the instance with no way of parsing
OriginalFile binaries, all files will be assumed to have blank
content. |
FullTextBridge(OriginalFilesService files,
java.util.Map<java.lang.String,FileParser> parsers)
Deprecated.
Constructor which provides an empty set of custom
bridges . |
FullTextBridge(OriginalFilesService files,
java.util.Map<java.lang.String,FileParser> parsers,
java.lang.Class<org.hibernate.search.bridge.FieldBridge>[] bridgeClasses)
Deprecated.
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
set_annotations(java.lang.String name,
IObject object,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Walks the various
Annotation instances attached to the object
argument and adds various levels to the index. |
void |
set_custom(java.lang.String name,
IObject object,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Loops over each
field bridge class and calls its
FieldBridge.set(String, Object, Document, LuceneOptions)
method. |
void |
set_details(java.lang.String name,
IObject object,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Parses all ownership and time-based details to the index for the given
object.
|
void |
set_file(java.lang.String name,
IObject object,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Uses
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". |
void |
set_folders(java.lang.String name,
IObject object,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Walks the various
Folder instances attached to the object
argument so that it may be found via its immediate parent folder. |
void |
set(java.lang.String name,
java.lang.Object value,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.
Default implementation of the
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) . |
add, addContents, getProxiedObject, logger, parse, reindex, reindexAll, setApplicationEventPublisher
protected final OriginalFilesService files
protected final java.util.Map<java.lang.String,FileParser> parsers
protected final java.lang.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, java.util.Map<java.lang.String,FileParser> parsers)
bridges
.public FullTextBridge(OriginalFilesService files, java.util.Map<java.lang.String,FileParser> parsers, java.lang.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(java.lang.String name, java.lang.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.FieldBridge
set
in class BridgeHelper
public void set_file(java.lang.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(java.lang.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(java.lang.String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
name
- object
- document
- opts
- public void set_folders(java.lang.String name, IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Folder
instances attached to the object
argument so that it may be found via its immediate parent folder.public void set_custom(java.lang.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.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.