Expressions with Lucene Lucene's expressions module allows computing values for documents using arbitrary mathematical expressions. Among other things, expressions allow a very easy and powerful way to e.g. sort search results and geospatial faceting . The module parses String expressions in JavaScript notation, and returns an object which computes a value for each requested document. Expressions are built of literals , variables and functions . For example, in the expression 5*sqrt(votes) functions sqrt etc.
Read full article from Code Reduction: Expressions with Lucene
No comments:
Post a Comment