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 YonikSeeley:
http://wiki.apache.org/solr/FunctionQuery

The comment on the change is:
document top()

------------------------------------------------------------------------------
  max(x,c) returns the max of another function and a constant.  Useful for 
"bottoming out" another function at some constant.
      Example Syntax: '''max(myfield,0)'''
  
+ === top ===
+ <!> ["Solr1.4"]
+ Causes it's function query argument to derive it's values from the top-level 
IndexReader containing all parts of an index.  For example, the ordinal of a 
value in a single segment will be different from the ordinal of that same value 
in the complete index.  The ord() and rord() functions implicitly use top() and 
hence ord(foo) is equivalent to top(ord(foo)).
+ 
  === General Example ===
      To give more idea about the use of the function query, suppose index 
stores dimensions in meters '''x''', '''y''','''z''' of some hypothetical boxes 
with arbitrary names stored in field '''boxname'''.
      Suppose we want to search for box matching name ''findbox'' but ranked 
according to volumes of boxes, the query params would be:

Reply via email to