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 BensonMargulies
Date Sun, 15 Apr 2012 14:01:47 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 BensonMargulies:
http://wiki.apache.org/solr/FunctionQuery?action=diff&rev1=79&rev2=80

Comment:
clarify parser status for query function examples.

  
  == query ==
  <!> [[Solr1.4]] query(subquery, default) returns the score for the given subquery,
or the default value for documents not matching the query.  Any type of subquery is supported
through either parameter dereferencing {{{$otherparam}}} or direct specification of the query
string in the LocalParams via "v".
+ 
+ These examples assume '&defType=func', since they just have a function in the Q parameter.

  
   . Example Syntax: '''q=product(popularity, query({!dismax qf=text v='solr rocks'}))'''
returns the product of the popularity and the score of the dismax query.
   . Example Syntax: '''q=product(popularity, query($qq))&qq={!dismax qf=text}solr rocks'''
is equivalent to the previous query, using param dereferencing.

Mime
View raw message