You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2017/04/30 02:01:45 UTC

lucene-solr:jira/SOLR-1485: add _first_ function to function syntax comment

Repository: lucene-solr
Updated Branches:
  refs/heads/jira/SOLR-1485 4f053e631 -> 7bc3592e7


add _first_ function to function syntax comment


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7bc3592e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7bc3592e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7bc3592e

Branch: refs/heads/jira/SOLR-1485
Commit: 7bc3592e749296c1bb22a4467aba6c8747dbb164
Parents: 4f053e6
Author: Erik Hatcher <eh...@apache.org>
Authored: Sat Apr 29 22:01:28 2017 -0400
Committer: Erik Hatcher <eh...@apache.org>
Committed: Sat Apr 29 22:01:28 2017 -0400

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/search/ValueSourceParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7bc3592e/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java
index 2ddb539..6149582 100644
--- a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java
+++ b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java
@@ -711,7 +711,7 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin {
     addParser("payload", new ValueSourceParser() {
       @Override
       public ValueSource parse(FunctionQParser fp) throws SyntaxError {
-        // payload(field,value[,default, 'min|max|average'])
+        // payload(field,value[,default, ['min|max|average|first']])
         //   defaults to "average" and 0.0 default value
 
         TInfo tinfo = parseTerm(fp); // would have made this parser a new separate class and registered it, but this handy method is private :/