fixed error in the treeprocessor. it used th=-1 as default value, now it use th=1

This commit is contained in:
miconis 2020-09-29 12:01:25 +02:00
parent 19c3c90d7b
commit dd34e371d7
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class TreeNodeDef implements Serializable {
fieldConf.getComparator() + " on " + fieldConf.getField() + " " + fields.indexOf(fieldConf),
new FieldStats(
weight,
Double.parseDouble(fieldConf.getParams().getOrDefault("threshold", "-1.0")),
Double.parseDouble(fieldConf.getParams().getOrDefault("threshold", "1.0")),
result,
fieldConf.isCountIfUndefined(),
doc1.getFieldMap().get(fieldConf.getField()),