On Wed, Jan 16, 2013 at 6:11 PM, Walter Underwood <wun...@wunderwood.org> wrote:
> I got the syntax from: 
> http://lucidworks.lucidimagination.com/display/solr/Function+Queries

Oops, I've alerted our tech writers!  It should be fixed now.

exists(field|function) returns true if a value exists for a given document.
Example use: exists(myField) will return if myField has a value, while
exists(query(year:2012)) will return true for docs with year=2012.

So in your case, something like this should hopefully work:
if( exists(query(school:1579535)), 5, 1)

-Yonik
http://lucidworks.com

Reply via email to