Commit 8baf0e2a authored by Matija Obreza's avatar Matija Obreza
Browse files

Boost FaoInsitute

parent dc65b0ca
......@@ -30,6 +30,7 @@ import javax.persistence.UniqueConstraint;
import org.crophub.rest.common.lucene.genesys.FaoInstituteBridge;
import org.hibernate.annotations.Index;
import org.hibernate.search.annotations.Boost;
import org.hibernate.search.annotations.ClassBridge;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
......@@ -40,7 +41,7 @@ import org.hibernate.search.annotations.Store;
@Table(name = "faoinstitute", uniqueConstraints = @UniqueConstraint(columnNames = { "code" }))
@org.hibernate.annotations.Table(appliesTo = "faoinstitute", indexes = { @Index(columnNames = { "code" }, name = "code_FAOINSTITUTE") })
@Indexed
@ClassBridge(name = "body", impl = FaoInstituteBridge.class)
@ClassBridge(name = "body", impl = FaoInstituteBridge.class, boost = @Boost(10))
public class FaoInstitute extends GeoEntity implements java.io.Serializable {
/**
......@@ -96,7 +97,7 @@ public class FaoInstitute extends GeoEntity implements java.io.Serializable {
}
@Column(length = 300)
@Field(name="title", store = Store.YES)
@Field(name = "title", store = Store.YES)
public String getFullName() {
return this.fullName;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment