Package ome.services.fulltext.bridges
Class ProjectWithImageNameBridge
- java.lang.Object
-
- ome.services.fulltext.BridgeHelper
-
- ome.services.fulltext.bridges.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 customFieldBridge
implementation which parses allImage
names from aProject
and inserts them into the index for thatProject
.- Since:
- 3.0-Beta3
-
-
Field Summary
-
Fields inherited from class ome.services.fulltext.BridgeHelper
COMBINED, log, publisher
-
-
Constructor Summary
Constructors Constructor Description ProjectWithImageNameBridge()
Deprecated.
-
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.If the "value" argument is aProject
, thisbridge
gathers all images and adds them to the index with a slightly reduced boost value.-
Methods inherited from class ome.services.fulltext.BridgeHelper
add, addContents, addEnumIfNotNull, addIfNotNull, getProxiedObject, logger, parse, reindex, reindexAll, setApplicationEventPublisher
-
-
-
-
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 aProject
, thisbridge
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 theBridgeHelper.COMBINED
field via theBridgeHelper.add(Document, String, String, LuceneOptions)
method.- Specified by:
set
in interfaceorg.hibernate.search.bridge.FieldBridge
- Specified by:
set
in classBridgeHelper
-
-