• Allows overload of transformers used to create solr filter expressions. This allows customizing e.g. of $suggest operator.

    Parameters

    • customTransformers: Record<string, CustomTransformer>

      the custom transformer function.

    Returns {
        astToSolrQL: ((astOrWalker) => string);
        toSolrQL: ((query?, options?) => string);
    }

    an object with customized toSolrQL and astToSolrQL functions.

    • astToSolrQL: ((astOrWalker) => string)
        • (astOrWalker): string
        • Encodes ast/walker to solr filter, it is using the custom transformers.

          Parameters

          Returns string

    • toSolrQL: ((query?, options?) => string)

Generated using TypeDoc