• 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)

      Encodes ast/walker to solr filter, it is using the custom transformers.

        • (astOrWalker): string
        • Parameters

          Returns string

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

      Encodes query to solr filter, it is using the custom transformers.

Generated using TypeDoc