You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/02/19 05:23:19 UTC
[Solr Wiki] Update of "FunctionQuery" by NoblePaul
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul:
http://wiki.apache.org/solr/FunctionQuery
------------------------------------------------------------------------------
=== map ===
<!> ["Solr1.3"]
map(x,min,max,target) maps any values of the function x that fall within min and max inclusive to target. min,max,target are constants. It outputs the field's value if it does not fall between min and max.
- Example Syntax: '''map(x,0,0,1)''' change any values of 0 to 1... useful in handling default 0 values
+ Example Syntax 1: '''map(x,0,0,1)''' change any values of 0 to 1... useful in handling default 0 values
+
+ Example Syntax 2: '''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
+
+
+
=== scale ===
<!> ["Solr1.3"]