QueryTemplate

class QueryTemplate(query: String)

Provides templating for the solr query. This class makes place holder and simple string replacement.

You can write variables in the query as the following:

  • %VAR_NAME% : place holder to set a single word (parameter would be escaped)
  • ?VAR_NAME? : place holder to set an expression (&, | and ! are available in an expression)
  • $VAR_NAME$ : string replacement (parameter would be not escaped)
class Object
trait Matchable
class Any

Value members

Concrete methods

def merge(params: Map[String, Any])(implicit parser: ExpressionParser): String

Merges given parameters to this template and returns the result.

Merges given parameters to this template and returns the result.

Value Params
params

the parameter map which would be merged with this template

Returns

the merged string