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
#add(Document, String, String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index, Float)
method.set
in interface org.hibernate.search.bridge.FieldBridge
set
in class BridgeHelper
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.