fix typo in abs.name() value source

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@577879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-09-20 19:02:05 +00:00
parent da32f1d023
commit b91bd4f941
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ public class QueryParsing {
ValueSource source = parseValSource(sp,schema); ValueSource source = parseValSource(sp,schema);
return new SimpleFloatFunction(source) { return new SimpleFloatFunction(source) {
protected String name() { protected String name() {
return "log"; return "abs";
} }
protected float func(int doc, DocValues vals) { protected float func(int doc, DocValues vals) {
return (float)Math.abs(vals.floatVal(doc)); return (float)Math.abs(vals.floatVal(doc));