Class Field


public class Field extends QueryChain
  • Method Details

    • contains

      public Query contains(String value)
      Contains query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      Returns:
      the query
    • contains

      public Query contains(Annotation annotation, String value)
      Contains query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      value - the value
      Returns:
      the query
    • containsPhrase

      public Query containsPhrase(String value, String... others)
      Contains phrase query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      others - the others
      Returns:
      the query
    • containsPhrase

      public Query containsPhrase(List<String> values)
      Contains phrase query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      values - the values
      Returns:
      the query
    • containsNear

      public Query containsNear(String value, String... others)
      Contains near query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      others - the others
      Returns:
      the query
    • containsNear

      public Query containsNear(List<String> values)
      Contains near query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      values - the values
      Returns:
      the query
    • containsNear

      public Query containsNear(Annotation annotation, String value, String... others)
      Contains near query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      value - the value
      others - the others
      Returns:
      the query
    • containsNear

      public Query containsNear(Annotation annotation, List<String> values)
      Contains near query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      values - the values
      Returns:
      the query
    • containsOnear

      public Query containsOnear(String value, String... others)
      Contains onear query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      others - the others
      Returns:
      the query
    • containsOnear

      public Query containsOnear(List<String> values)
      Contains onear query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      values - the values
      Returns:
      the query
    • containsOnear

      public Query containsOnear(Annotation annotation, String value, String... others)
      Contains onear query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      value - the value
      others - the others
      Returns:
      the query
    • containsOnear

      public Query containsOnear(Annotation annotation, List<String> values)
      Contains onear query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      values - the values
      Returns:
      the query
    • containsSameElement

      public Query containsSameElement(Query andQuery)
      Contains same element query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      andQuery - the and query
      Returns:
      the query
    • containsEquiv

      public Query containsEquiv(String value, String... others)
      Contains equiv query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      others - the others
      Returns:
      the query
    • containsEquiv

      public Query containsEquiv(List<String> values)
      Contains equiv query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      values - the values
      Returns:
      the query
    • containsUri

      public Query containsUri(String value)
      Contains uri query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      value - the value
      Returns:
      the query
    • containsUri

      public Query containsUri(Annotation annotation, String value)
      Contains uri query. https://docs.vespa.ai/en/reference/query-language-reference.html#contains
      Parameters:
      annotation - the annotation
      value - the value
      Returns:
      the query
    • matches

      public Query matches(String str)
      Matches query. https://docs.vespa.ai/en/reference/query-language-reference.html#matches
      Parameters:
      str - the str
      Returns:
      the query
    • eq

      public Query eq(int t)
      Equals query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • ge

      public Query ge(int t)
      Greater than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • gt

      public Query gt(int t)
      Greater than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • le

      public Query le(int t)
      Less than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • lt

      public Query lt(int t)
      Less than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • inRange

      public Query inRange(int l, int m)
      In range query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      l - the l
      m - the m
      Returns:
      the query
    • eq

      public Query eq(long t)
      Equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • ge

      public Query ge(long t)
      Greater than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • gt

      public Query gt(long t)
      Greater than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • le

      public Query le(long t)
      Less than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • lt

      public Query lt(long t)
      Less than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • inRange

      public Query inRange(long l, long m)
      In range query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      l - the l
      m - the m
      Returns:
      the query
    • eq

      public Query eq(double t)
      Equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • ge

      public Query ge(double t)
      Greater than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • gt

      public Query gt(double t)
      Greater than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • le

      public Query le(double t)
      Less than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • lt

      public Query lt(double t)
      Less than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • inRange

      public Query inRange(double l, double m)
      In range query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      l - the l
      m - the m
      Returns:
      the query
    • eq

      public Query eq(float t)
      Equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • ge

      public Query ge(float t)
      Greater than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • gt

      public Query gt(float t)
      Greater than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • le

      public Query le(float t)
      Less than or equal to query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • lt

      public Query lt(float t)
      Less than query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      t - the t
      Returns:
      the query
    • inRange

      public Query inRange(float l, float m)
      In range query. https://docs.vespa.ai/en/reference/query-language-reference.html#numeric
      Parameters:
      l - the l
      m - the m
      Returns:
      the query
    • isTrue

      public Query isTrue()
      Is true query. https://docs.vespa.ai/en/reference/query-language-reference.html#boolean
      Returns:
      the query
    • isFalse

      public Query isFalse()
      Is false query. https://docs.vespa.ai/en/reference/query-language-reference.html#boolean
      Returns:
      the query
    • nearestNeighbor

      public Query nearestNeighbor(String rankFeature)
      Nearest neighbor query. https://docs.vespa.ai/en/reference/query-language-reference.html#nearestneighbor
      Parameters:
      rankFeature - the rankfeature.
      Returns:
      the query
    • nearestNeighbor

      public Query nearestNeighbor(Annotation annotation, String rankFeature)
      Nearest neighbor query. https://docs.vespa.ai/en/reference/query-language-reference.html#nearestneighbor
      Parameters:
      annotation - the annotation
      rankFeature - the rankfeature.
      Returns:
      the query
    • toString

      public String toString()
      Overrides:
      toString in class Object