Class FullTextQuery

java.lang.Object
org.ametys.cms.search.query.FullTextQuery
All Implemented Interfaces:
Query

public class FullTextQuery extends Object implements Query
A Query realizing a full-text search on contents (search on all properties). Available operators:
  • SEARCH (default)
  • SEARCH_STEMMED
  • LIKE
  • EQ
  • Field Details

  • Constructor Details

    • FullTextQuery

      public FullTextQuery(String value)
      Build a FullTextQuery.
      Parameters:
      value - the value.
    • FullTextQuery

      public FullTextQuery(String value, Query.Operator operator)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      operator - The operator to use.
    • FullTextQuery

      public FullTextQuery(String value, String language)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      language - the language.
    • FullTextQuery

      public FullTextQuery(String value, String language, Query.Operator operator)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      language - the language.
      operator - The operator to use.
    • FullTextQuery

      public FullTextQuery(String value, String language, Query.Operator operator, boolean alreadyEscaped)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      language - the language.
      operator - The operator to use.
      alreadyEscaped - true if the value is already escaped and there is no need to escape again the value during the build of the query.
    • FullTextQuery

      public FullTextQuery(String value, String fieldName, String language, Query.Operator operator)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      fieldName - the field name.
      language - the language.
      operator - The operator to use.
    • FullTextQuery

      public FullTextQuery(String value, String fieldName, String language, Query.Operator operator, boolean alreadyEscaped)
      Build a FullTextQuery.
      Parameters:
      value - the value.
      fieldName - the field name.
      language - the language.
      operator - The operator to use.
      alreadyEscaped - true if the value is already escaped and there is no need to escape again the value during the build of the query.
  • Method Details