cpoerschke commented on code in PR #3318:
URL: https://github.com/apache/solr/pull/3318#discussion_r2060395717


##########
solr/core/src/java/org/apache/solr/search/RankQParserPlugin.java:
##########
@@ -73,6 +73,18 @@ public Query createQuery(String fieldName, SolrParams 
params) throws SyntaxError
         }
       }
     },
+    LINEAR {
+      @Override
+      public Query createQuery(String fieldName, SolrParams params) throws 
SyntaxError {
+        float weight = params.getFloat(WEIGHT, 1f);

Review Comment:
   Actually I think this means that
   
   ```
   \{!boost+b=42\}\{!rank+f=foobar+function=linear\}
   ```
   
   below can be shortened to
   
   ```
   \{!rank+f=foobar+weight=42+function=linear\}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to