Package ome.services.fulltext
Class FullTextBridge
- java.lang.Object
-
- ome.services.fulltext.BridgeHelper
-
- ome.services.fulltext.FullTextBridge
-
- All Implemented Interfaces:
org.hibernate.search.bridge.FieldBridge
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
@Deprecated public class FullTextBridge extends BridgeHelper
Deprecated.Primary definition of what will be indexed via Hibernate Search. This class is delegated to by theDetailsFieldBridge
, and further delegates to classes as defined under "SearchBridges".
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<org.hibernate.search.bridge.FieldBridge>[]
classes
Deprecated.protected ome.io.nio.OriginalFilesService
files
Deprecated.protected int
maxFilesetSize
Deprecated.protected java.util.Map<java.lang.String,FileParser>
parsers
Deprecated.-
Fields inherited from class ome.services.fulltext.BridgeHelper
COMBINED, log, publisher
-
-
Constructor Summary
Constructors Constructor Description FullTextBridge()
Deprecated.Since this constructor provides the instance with no way of parsingOriginalFile
binaries, all files will be assumed to have blank content.FullTextBridge(ome.io.nio.OriginalFilesService files, java.util.Map<java.lang.String,FileParser> parsers)
Deprecated.Constructor which provides an empty set of custombridges
.FullTextBridge(ome.io.nio.OriginalFilesService files, java.util.Map<java.lang.String,FileParser> parsers, java.lang.Class<org.hibernate.search.bridge.FieldBridge>[] bridgeClasses)
Deprecated.Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 theset(String, Object, Document, LuceneOptions)
method which callsset_file(String, IObject, Document, LuceneOptions)
set_annotations(String, IObject, Document, LuceneOptions)
,set_acquisition(String, IObject, Document, LuceneOptions)
,set_details(String, IObject, Document, LuceneOptions)
,set_fileset(String, IObject, Document, LuceneOptions)
,set_folders(String, IObject, Document, LuceneOptions)
, and finallyset_custom(String, IObject, Document, LuceneOptions)
.void
set_acquisition(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the acquisition related metadata including channel names.void
set_annotations(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the variousAnnotation
instances attached to the object argument and adds various levels to the index.void
set_custom(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Loops over eachfield bridge class
and calls itsFieldBridge.set(String, Object, Document, LuceneOptions)
method.void
set_details(java.lang.String name, ome.model.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, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.UsesBridgeHelper.parse(OriginalFile, OriginalFilesService, Map)
to get aReader
for the given file which is then passed toBridgeHelper.addContents(Document, String, OriginalFile, OriginalFilesService, Map, LuceneOptions)
using the field name "file.contents".void
set_fileset(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks theFileset
instances attached to an Image.void
set_folders(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the variousFolder
instances attached to the object argument so that it may be found via its immediate parent folder.void
setMaxFilesetSize(int maxFilesetSize)
Deprecated.Sets the cut-off for indexing filesets-
Methods inherited from class ome.services.fulltext.BridgeHelper
add, addContents, addEnumIfNotNull, addIfNotNull, getProxiedObject, logger, parse, reindex, reindexAll, setApplicationEventPublisher
-
-
-
-
Field Detail
-
files
protected final ome.io.nio.OriginalFilesService files
Deprecated.
-
parsers
protected final java.util.Map<java.lang.String,FileParser> parsers
Deprecated.
-
classes
protected final java.lang.Class<org.hibernate.search.bridge.FieldBridge>[] classes
Deprecated.
-
maxFilesetSize
protected int maxFilesetSize
Deprecated.
-
-
Constructor Detail
-
FullTextBridge
public FullTextBridge()
Deprecated.Since this constructor provides the instance with no way of parsingOriginalFile
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.
-
FullTextBridge
public FullTextBridge(ome.io.nio.OriginalFilesService files, java.util.Map<java.lang.String,FileParser> parsers)
Deprecated.Constructor which provides an empty set of custombridges
.
-
FullTextBridge
public FullTextBridge(ome.io.nio.OriginalFilesService files, java.util.Map<java.lang.String,FileParser> parsers, java.lang.Class<org.hibernate.search.bridge.FieldBridge>[] bridgeClasses)
Deprecated.Main constructor.- Parameters:
files
-OriginalFilesService
for getting access to binary files.parsers
- List ofFileParser
instances which are currently configured.bridgeClasses
- set ofbridge classes
which will be instantiated via a no-arg constructor.- See Also:
- Bridges
-
-
Method Detail
-
setMaxFilesetSize
public void setMaxFilesetSize(int maxFilesetSize)
Deprecated.Sets the cut-off for indexing filesets- Parameters:
maxFilesetSize
- the maximume fileset size
-
set
public 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 theset(String, Object, Document, LuceneOptions)
method which callsset_file(String, IObject, Document, LuceneOptions)
set_annotations(String, IObject, Document, LuceneOptions)
,set_acquisition(String, IObject, Document, LuceneOptions)
,set_details(String, IObject, Document, LuceneOptions)
,set_fileset(String, IObject, Document, LuceneOptions)
,set_folders(String, IObject, Document, LuceneOptions)
, and finallyset_custom(String, IObject, Document, LuceneOptions)
. as well as allannotations
.- Specified by:
set
in interfaceorg.hibernate.search.bridge.FieldBridge
- Specified by:
set
in classBridgeHelper
-
set_file
public void set_file(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.UsesBridgeHelper.parse(OriginalFile, OriginalFilesService, Map)
to get aReader
for the given file which is then passed toBridgeHelper.addContents(Document, String, OriginalFile, OriginalFilesService, Map, LuceneOptions)
using the field name "file.contents".- Parameters:
name
-object
-document
-opts
-
-
set_annotations
public void set_annotations(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the variousAnnotation
instances attached to the object argument and adds various levels to the index.- Parameters:
name
-object
-document
-opts
-
-
set_acquisition
public void set_acquisition(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the acquisition related metadata including channel names. This includes: - channel.name - channel.fluor - channel.mode - channel.photometricInterpretation- Parameters:
name
-object
-document
-opts
-
-
set_details
public void set_details(java.lang.String name, ome.model.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.- Parameters:
name
-object
-document
-opts
-
-
set_folders
public void set_folders(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks the variousFolder
instances attached to the object argument so that it may be found via its immediate parent folder.
-
set_fileset
public void set_fileset(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Walks theFileset
instances attached to an Image. Fields that are added include: - fileset.entry.clientPath - fileset.entry.name - fileset.templatePrefix
-
set_custom
public void set_custom(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Loops over eachfield bridge class
and calls itsFieldBridge.set(String, Object, Document, LuceneOptions)
method. Any exceptions are logged but do not cancel execution.- Parameters:
name
-object
-document
-opts
-
-
-