public class GroupByTaxonClassBridge extends AbstractClassBridge
GroupByTaxonClassBridge
adds the field
groupby_taxon.id
to the lucene document which can be used to
group search results based on the taxon which is associated with the indexed
cdm entity. So any cdm class which is involved in querying for taxa must
used this class bridge, e.g.:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUPBY_TAXON_FIELD |
static Logger |
logger |
idFieldBridge, idFieldOptions
Constructor and Description |
---|
GroupByTaxonClassBridge() |
Modifier and Type | Method and Description |
---|---|
protected Taxon |
getAssociatedTaxon(java.lang.Object entity) |
void |
set(java.lang.String name,
java.lang.Object value,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions luceneOptions) |
public static final java.lang.String GROUPBY_TAXON_FIELD
public static final Logger logger
protected Taxon getAssociatedTaxon(java.lang.Object entity)
entity
- public void set(java.lang.String name, java.lang.Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions luceneOptions)
set
in interface org.hibernate.search.bridge.FieldBridge
set
in class AbstractClassBridge
Copyright © 2007-2020 EDIT. All Rights Reserved.