Class ProjectWithImageNameBridge

  • All Implemented Interfaces:
    org.hibernate.search.bridge.FieldBridge, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

    @Deprecated
    public class ProjectWithImageNameBridge
    extends BridgeHelper
    Deprecated.
    Example custom FieldBridge implementation which parses all Image names from a Project and inserts them into the index for that Project.
    Since:
    3.0-Beta3
    • Constructor Detail

      • ProjectWithImageNameBridge

        public ProjectWithImageNameBridge()
        Deprecated.
    • Method Detail

      • 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.
        If the "value" argument is a Project, this bridge gathers all images and adds them to the index with a slightly reduced boost value. The field name of the image name is "image_name" but the values are also added to the BridgeHelper.COMBINED field via the BridgeHelper.add(Document, String, String, LuceneOptions) method.
        Specified by:
        set in interface org.hibernate.search.bridge.FieldBridge
        Specified by:
        set in class BridgeHelper