Class StringQuery

All Implemented Interfaces:
Cloneable, Query

public class StringQuery extends AbstractTextQuery
Represents a Query testing a string field.
  • Constructor Details

    • StringQuery

      public StringQuery(String fieldPath)
      Build a StringQuery testing the existence of the field.
      Parameters:
      fieldPath - the field path
    • StringQuery

      public StringQuery(String fieldPath, String value)
      Build a string query.
      Parameters:
      fieldPath - the field's path
      value - the value.
    • StringQuery

      public StringQuery(String fieldPath, String value, String language)
      Build a string query.
      Parameters:
      fieldPath - the field's path
      value - the value.
      language - the query language (can be null).
    • StringQuery

      public StringQuery(String fieldPath, Query.Operator op, String value, String language)
      Build a string query.
      Parameters:
      fieldPath - the field's path
      op - the operator.
      value - the value.
      language - the query language (can be null).
    • StringQuery

      public StringQuery(String fieldPath, Query.Operator op, String value, String language, boolean alreadyEscaped)
      Build a string query.
      Parameters:
      fieldPath - the field's path
      op - the operator.
      value - the value.
      language - the query language (can be null).
      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