remove unused codes
This commit is contained in:
parent
fd09edb344
commit
ca7c93850d
2 changed files with 0 additions and 20 deletions
|
@ -16,7 +16,6 @@
|
|||
package org.codelibs.fess.indexer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
@ -100,8 +99,6 @@ public class IndexUpdater extends Thread {
|
|||
|
||||
private final List<DocBoostMatcher> docBoostMatcherList = new ArrayList<>();
|
||||
|
||||
private final Map<String, Object> docValueMap = new HashMap<>();
|
||||
|
||||
private List<Crawler> crawlerList;
|
||||
|
||||
public IndexUpdater() {
|
||||
|
@ -415,15 +412,6 @@ public class IndexUpdater extends Thread {
|
|||
addFavoriteCountField(map);
|
||||
}
|
||||
|
||||
// default values
|
||||
for (final Map.Entry<String, Object> entry : docValueMap.entrySet()) {
|
||||
final String key = entry.getKey();
|
||||
final Object obj = map.get(key);
|
||||
if (obj == null) {
|
||||
map.put(key, entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
float documentBoost = 0.0f;
|
||||
for (final DocBoostMatcher docBoostMatcher : docBoostMatcherList) {
|
||||
if (docBoostMatcher.match(map)) {
|
||||
|
@ -600,10 +588,6 @@ public class IndexUpdater extends Thread {
|
|||
docBoostMatcherList.add(rule);
|
||||
}
|
||||
|
||||
public void addDefaultDocValue(final String fieldName, final Object value) {
|
||||
docValueMap.put(fieldName, value);
|
||||
}
|
||||
|
||||
public void setCrawlerList(final List<Crawler> crawlerList) {
|
||||
this.crawlerList = crawlerList;
|
||||
}
|
||||
|
|
|
@ -41,10 +41,6 @@
|
|||
<property name="boostExpression">"1000.0"</property>
|
||||
</component>
|
||||
</arg>
|
||||
</postConstruct>
|
||||
<postConstruct name="addDefaultDocValue">
|
||||
<arg>"FieldName"</arg>
|
||||
<arg>"VALUE"</arg>
|
||||
</postConstruct>
|
||||
-->
|
||||
</component>
|
||||
|
|
Loading…
Add table
Reference in a new issue