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>[]classesDeprecated.protected ome.io.nio.OriginalFilesServicefilesDeprecated.protected intmaxFilesetSizeDeprecated.protected java.util.Map<java.lang.String,FileParser>parsersDeprecated.-
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 parsingOriginalFilebinaries, 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 voidset(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).voidset_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.voidset_annotations(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)Deprecated.Walks the variousAnnotationinstances attached to the object argument and adds various levels to the index.voidset_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 classand calls itsFieldBridge.set(String, Object, Document, LuceneOptions)method.voidset_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.voidset_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 aReaderfor the given file which is then passed toBridgeHelper.addContents(Document, String, OriginalFile, OriginalFilesService, Map, LuceneOptions)using the field name "file.contents".voidset_fileset(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)Deprecated.Walks theFilesetinstances attached to an Image.voidset_folders(java.lang.String name, ome.model.IObject object, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)Deprecated.Walks the variousFolderinstances attached to the object argument so that it may be found via its immediate parent folder.voidsetMaxFilesetSize(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 parsingOriginalFilebinaries, 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-OriginalFilesServicefor getting access to binary files.parsers- List ofFileParserinstances which are currently configured.bridgeClasses- set ofbridge classeswhich 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:
setin interfaceorg.hibernate.search.bridge.FieldBridge- Specified by:
setin 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 aReaderfor 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 variousAnnotationinstances 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 variousFolderinstances 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 theFilesetinstances 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 classand calls itsFieldBridge.set(String, Object, Document, LuceneOptions)method. Any exceptions are logged but do not cancel execution.- Parameters:
name-object-document-opts-
-
-