Class MatchingTerms

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class MatchingTerms
    extends FieldExpression
    FieldExpression to provide the list of terms that match the query for a field.

    WARNING: For performance reasons, you should only use this field expression on fields that are configured with SchemaFieldProperties.HIGHLIGHT_METHOD set to "index".

    See Also:
    Serialized Form
    • Constructor Detail

      • MatchingTerms

        public MatchingTerms​(java.lang.String field)
        Constructor
    • Method Detail

      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • getFieldName

        public java.lang.String getFieldName()
        Description copied from class: FieldExpression
        Get the field name for this expression.

        This is used as a hint to the search engine to tie back to the schema. null may be returned if this expression contains no field. If this expression is composed of many fields, this can be either the "primary" field for the expression, or null.

        Overrides:
        getFieldName in class FieldExpression
      • setFieldName

        public void setFieldName​(java.lang.String value)
      • getScope

        public java.lang.String getScope()
      • setScope

        public void setScope​(java.lang.String value)
      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object