Class PgFullTextSearchFunction

  • All Implemented Interfaces:
    org.hibernate.dialect.function.SQLFunction
    Direct Known Subclasses:
    PgFullTextSearchFunction.Filter, PgFullTextSearchFunction.Rank

    public abstract class PgFullTextSearchFunction
    extends Object
    implements org.hibernate.dialect.function.SQLFunction
    HQL functions to support Full Text Search in PostgreSQL. See each class for more specific documentation
    • Constructor Detail

      • PgFullTextSearchFunction

        public PgFullTextSearchFunction()
    • Method Detail

      • hasArguments

        public boolean hasArguments()
        Specified by:
        hasArguments in interface org.hibernate.dialect.function.SQLFunction
      • hasParenthesesIfNoArguments

        public boolean hasParenthesesIfNoArguments()
        Specified by:
        hasParenthesesIfNoArguments in interface org.hibernate.dialect.function.SQLFunction
      • render

        public String render​(org.hibernate.type.Type type,
                             List args,
                             org.hibernate.engine.spi.SessionFactoryImplementor factory)
        Function that parses the HQL function to SQL language:
        Specified by:
        render in interface org.hibernate.dialect.function.SQLFunction
        Parameters:
        args - list of arguments passed to fullTextSearchFilter hbm function
        • table
        • field: tsvector column of table
        • ftsconfiguration [optional]: language to pass to to_tsquery function
        • value: string to be searched/compared
        Returns:
        hql string to append to an hql query in order to filter/obtain the rank. See examples for each class in each class' doc