Project

General

Profile

Revision 024216db

ID024216dbe5e03945d81d3bb000a8a2da9408d9b0
Parent 8848da42
Child 23328aba

Added by Andreas Müller over 2 years ago

ref #3560 add publish flag to lucene index

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/occurrence/SpecimenOrObservationBase.java
53 53
import org.hibernate.search.annotations.IndexedEmbedded;
54 54
import org.hibernate.search.annotations.SortableField;
55 55
import org.hibernate.search.annotations.Store;
56
import org.hibernate.search.bridge.builtin.BooleanBridge;
56 57

  
57 58
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
58 59
import eu.etaxonomy.cdm.hibernate.search.StripHtmlBridge;
......
208 209
    protected Set<DerivationEvent> derivationEvents = new HashSet<DerivationEvent>();
209 210

  
210 211
    @XmlAttribute(name = "publish")
212
    @Field(analyze = Analyze.NO)
213
    @FieldBridge(impl=BooleanBridge.class)
211 214
    private boolean publish = true;
212 215

  
213 216
    @XmlElement(name = "IdentityCache", required = false)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonBase.java
32 32
import org.hibernate.annotations.Index;
33 33
import org.hibernate.annotations.Table;
34 34
import org.hibernate.envers.Audited;
35
import org.hibernate.search.annotations.Analyze;
35 36
import org.hibernate.search.annotations.ClassBridge;
36 37
import org.hibernate.search.annotations.ClassBridges;
38
import org.hibernate.search.annotations.Field;
39
import org.hibernate.search.annotations.FieldBridge;
37 40
import org.hibernate.search.annotations.IndexedEmbedded;
38 41
import org.hibernate.search.annotations.Store;
42
import org.hibernate.search.bridge.builtin.BooleanBridge;
39 43

  
40 44
import eu.etaxonomy.cdm.common.CdmUtils;
41 45
import eu.etaxonomy.cdm.hibernate.search.AcceptedTaxonBridge;
......
155 159
    private boolean useNameCache = false;
156 160

  
157 161
    @XmlAttribute(name = "publish")
162
    @Field(analyze = Analyze.NO)
163
    @FieldBridge(impl=BooleanBridge.class)
158 164
    private boolean publish = true;
159 165

  
160 166

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)