mirror of https://github.com/apache/lucene.git
SOLR-552: change scale function to use itself as context key instead of source
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1547568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dab93e43cc
commit
56e6b5752a
|
@ -94,14 +94,14 @@ public class ScaleFloatFunction extends ValueSource {
|
|||
ScaleInfo scaleInfo = new ScaleInfo();
|
||||
scaleInfo.minVal = minVal;
|
||||
scaleInfo.maxVal = maxVal;
|
||||
context.put(this.source, scaleInfo);
|
||||
context.put(ScaleFloatFunction.this, scaleInfo);
|
||||
return scaleInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
|
||||
|
||||
ScaleInfo scaleInfo = (ScaleInfo)context.get(source);
|
||||
ScaleInfo scaleInfo = (ScaleInfo)context.get(ScaleFloatFunction.this);
|
||||
if (scaleInfo == null) {
|
||||
scaleInfo = createScaleInfo(context, readerContext);
|
||||
}
|
||||
|
|
|
@ -191,6 +191,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-5502: A "/" in a document id will cause an exception to be thrown
|
||||
when using the composite id router. (Anshum Gupta via Mark Miller)
|
||||
|
||||
* SOLR-552: Exception when using Query Function inside Scale Function.
|
||||
(Trey Grainger, yonik)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
Loading…
Reference in New Issue