Interface Escaper

  • All Known Implementing Classes:
    LuceneMinimalEscaper

    public interface Escaper
    An interface for special character escaping in queries for easy configuration of this matter.

    This is meant for the contents of string literals in where clauses, once they have been extracted. It's therefore not necessary to escape single quotes, unless of course they have some meaning to the search backend.

    Author:
    Georges Racinet
    • Method Detail

      • escape

        String escape​(String s)
        Escapes the provided string
        Returns:
        the escaped string