Class ExpressionValueSourceParser

java.lang.Object
org.apache.solr.search.ValueSourceParser
org.apache.solr.search.ExpressionValueSourceParser
All Implemented Interfaces:
NamedListInitializedPlugin

public class ExpressionValueSourceParser extends ValueSourceParser
A ValueSource parser configured with a pre-compiled expression that can then be evaluated at request time. It's powered by the Lucene Expressions module, which is a subset of JavaScript.
  • Field Details

  • Constructor Details

    • ExpressionValueSourceParser

      public ExpressionValueSourceParser()
  • Method Details

    • init

      public void init(org.apache.solr.common.util.NamedList<?> args)
      Description copied from interface: NamedListInitializedPlugin
      init will be called just once, immediately after creation.

      Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself

      Parameters:
      args - non-null list of initialization parameters (may be empty)
    • parse

      public org.apache.lucene.queries.function.ValueSource parse(FunctionQParser fp) throws SyntaxError
      Description copied from class: ValueSourceParser
      Parse the user input into a ValueSource.
      Specified by:
      parse in class ValueSourceParser
      Throws:
      SyntaxError