lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "FunctionQuery" by HossMan
Date Tue, 01 Jan 2013 00:48:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "FunctionQuery" page has been changed by HossMan:
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=89&rev2=90

Comment:
removing unimplemented map() variant SOLR-3963

   . Example Syntax 1: '''map(x,0,0,1)'''  change any values of 0 to 1... useful in handling
default 0 values
   . Example Syntax 2 <!> [[Solr1.4]]: '''map(x,0,0,1,0)'''  change any values of 0
to 1 . and if the value is not zero it can be set to the value of the 5th argument instead
of defaulting to the field's value
   . Example Syntax 3 <!> [[Solr1.3]]: '''map(price,0,100,0)'''  if price is between
0 and 100 return 0 otherwise return price.
-  . Example Syntax 4 <!> [[Solr4.0]] [[https://issues.apache.org/jira/browse/SOLR-3963||SOLR-3963]]
: '''map(price,0,100,sum(price,10),sum(price,100))'''  if price is between 0 and 100 return
price + 10 otherwise return price + 100.
  
  Also, if x=NULL, it will also match min of 0.
  

Mime
View raw message