Class 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 the DetailsFieldBridge, and further delegates to classes as defined under "SearchBridges".
    Since:
    3.0-Beta3
    See Also:
    Parsers, Bridges
    • 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.
    • Constructor Detail

      • FullTextBridge

        public FullTextBridge()
        Deprecated.
        Since this constructor provides the instance with no way of parsing 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.
      • FullTextBridge

        public FullTextBridge​(ome.io.nio.OriginalFilesService files,
                              java.util.Map<java.lang.String,​FileParser> parsers)
        Deprecated.
        Constructor which provides an empty set of custom bridges.
      • 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 of FileParser instances which are currently configured.
        bridgeClasses - set of bridge classes which will be instantiated via a no-arg constructor.
        See Also:
        Bridges
    • Method Detail

      • 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 various Annotation instances attached to the object argument and adds various levels to the index.
        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 various Folder instances attached to the object argument so that it may be found via its immediate parent folder.
      • 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 each field bridge class and calls its FieldBridge.set(String, Object, Document, LuceneOptions) method. Any exceptions are logged but do not cancel execution.
        Parameters:
        name -
        object -
        document -
        opts -