Package org.apache.lucene.expressions.js

Javascript expressions

See: Description

Package org.apache.lucene.expressions.js Description

Javascript expressions

A Javascript expression is a numeric expression specified using an expression syntax that's based on JavaScript expressions. You can construct expressions using:

JavaScript order of precedence rules apply for operators. Shortcut evaluation is used for logical operators—the second argument is only evaluated if the value of the expression cannot be determined after evaluating the first argument. For example, in the expression a || b, b is only evaluated if a is not true.

To compile an expression, use JavascriptCompiler.

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.