public class ProjectWithImageNameBridge extends BridgeHelper
FieldBridge
implementation which parses all
Image
names from a Project
and inserts them into the index
for that Project
.COMBINED, log, publisher
Constructor and Description |
---|
ProjectWithImageNameBridge() |
Modifier and Type | Method and Description |
---|---|
void |
set(String name,
Object value,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions _opts)
If the "value" argument is a
Project , this
bridge gathers all images and adds them to the index
with a slightly reduced boost value. |
add, addContents, getProxiedObject, logger, parse, reindex, reindexAll, setApplicationEventPublisher
public void set(String name, Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions _opts)
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.set
in interface org.hibernate.search.bridge.FieldBridge
set
in class BridgeHelper
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.