CustomTransformer: (
    this: {
        _escape: (v: any, keepWildCardChars?: boolean) => string;
        _super: Record<string, Transformer>;
        _valueToString: (v: any) => string;
    },
    node: ASTNode,
    queryOptions?: ComplexQueryToSolrQLOptions,
    subResults?: string[],
) => string

Type of a custom transformer function.

Type declaration

    • (
          this: {
              _escape: (v: any, keepWildCardChars?: boolean) => string;
              _super: Record<string, Transformer>;
              _valueToString: (v: any) => string;
          },
          node: ASTNode,
          queryOptions?: ComplexQueryToSolrQLOptions,
          subResults?: string[],
      ): string
    • Parameters

      • this: {
            _escape: (v: any, keepWildCardChars?: boolean) => string;
            _super: Record<string, Transformer>;
            _valueToString: (v: any) => string;
        }

        The custom this context.

        • _escape: (v: any, keepWildCardChars?: boolean) => string

          A helper utility to escape string values

        • _super: Record<string, Transformer>

          Allows access to default transformers

        • _valueToString: (v: any) => string

          A helper utility to convert a value into a string

      • node: ASTNode

        The current ast node.

      • OptionalqueryOptions: ComplexQueryToSolrQLOptions

        The used query options.

      • OptionalsubResults: string[]

        Result of child transformers.

      Returns string

      Transformation result.