|
@@ -16,6 +16,8 @@
|
|
|
|
|
|
package jp.sf.fess.db.exentity;
|
|
package jp.sf.fess.db.exentity;
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
+
|
|
import jp.sf.fess.db.bsentity.BsKeyMatch;
|
|
import jp.sf.fess.db.bsentity.BsKeyMatch;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -30,4 +32,25 @@ public class KeyMatch extends BsKeyMatch {
|
|
|
|
|
|
/** Serial version UID. (Default) */
|
|
/** Serial version UID. (Default) */
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
+
|
|
|
|
+ public KeyMatch() {
|
|
|
|
+ super();
|
|
|
|
+ setBoost(BigDecimal.ONE);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getBoostValue() {
|
|
|
|
+ if (_boost != null) {
|
|
|
|
+ return Integer.toString(_boost.intValue());
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setBoostValue(final String value) {
|
|
|
|
+ if (value != null) {
|
|
|
|
+ try {
|
|
|
|
+ _boost = new BigDecimal(value);
|
|
|
|
+ } catch (final Exception e) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|