Class TermsQuery


  • public class TermsQuery
    extends ChangableValueQuery
    A query that checks a single field for exact matches against a series of specified values. Values are compared verbatim (without analysis or normalization) and must match the whole field value.
    • Constructor Detail

      • TermsQuery

        public TermsQuery​(java.lang.String field,
                          java.util.List<java.lang.String> values,
                          java.lang.String method)
    • Method Detail

      • getField

        public java.lang.String getField()
        Returns:
        the field this query is executed against.
      • getValues

        public java.util.List<java.lang.String> getValues()
        Returns:
        the exact values to check for in getField(). Documents matching one or more of these values are included in the result set
      • getMethod

        public java.lang.String getMethod()
        Returns:
        an internal hint to the backend regarding which of several implementations would be best for executing this query.