Package ai.vespa.client.dsl
Class Field
- java.lang.Object
-
- ai.vespa.client.dsl.QueryChain
-
- ai.vespa.client.dsl.Field
-
public class Field extends QueryChain
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
contains(Annotation annotation, String value)
Contains query.Query
contains(String value)
Contains query.Query
containsEquiv(String value, String... others)
Contains equiv query.Query
containsEquiv(List<String> values)
Contains equiv query.Query
containsNear(Annotation annotation, String value, String... others)
Contains near query.Query
containsNear(Annotation annotation, List<String> values)
Contains near query.Query
containsNear(String value, String... others)
Contains near query.Query
containsNear(List<String> values)
Contains near query.Query
containsOnear(Annotation annotation, String value, String... others)
Contains onear query.Query
containsOnear(Annotation annotation, List<String> values)
Contains onear query.Query
containsOnear(String value, String... others)
Contains onear query.Query
containsOnear(List<String> values)
Contains onear query.Query
containsPhrase(String value, String... others)
Contains phrase query.Query
containsPhrase(List<String> values)
Contains phrase query.Query
containsSameElement(Query andQuery)
Contains same element query.Query
containsUri(Annotation annotation, String value)
Contains uri query.Query
containsUri(String value)
Contains uri query.Query
eq(double t)
Equal to query.Query
eq(float t)
Equal to query.Query
eq(int t)
Equals query.Query
eq(long t)
Equal to query.Query
ge(double t)
Greater than or equal to query.Query
ge(float t)
Greater than or equal to query.Query
ge(int t)
Greater than or equal to query.Query
ge(long t)
Greater than or equal to query.Query
gt(double t)
Greater than query.Query
gt(float t)
Greater than query.Query
gt(int t)
Greater than query.Query
gt(long t)
Greater than query.Query
inRange(double l, double m)
In range query.Query
inRange(float l, float m)
In range query.Query
inRange(int l, int m)
In range query.Query
inRange(long l, long m)
In range query.Query
isFalse()
Is false query.Query
isTrue()
Is true query.Query
le(double t)
Less than or equal to query.Query
le(float t)
Less than or equal to query.Query
le(int t)
Less than or equal to query.Query
le(long t)
Less than or equal to query.Query
lt(double t)
Less than query.Query
lt(float t)
Less than query.Query
lt(int t)
Less than query.Query
lt(long t)
Less than query.Query
matches(String str)
Matches query.Query
nearestNeighbor(Annotation annotation, String rankFeature)
Nearest neighbor query.Query
nearestNeighbor(String rankFeature)
Nearest neighbor query.String
toString()
-
-
-
Method Detail
-
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 annotationvalue
- 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 valueothers
- 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 valueothers
- 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 annotationvalue
- the valueothers
- 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 annotationvalues
- 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 valueothers
- 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 annotationvalue
- the valueothers
- 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 annotationvalues
- 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 valueothers
- 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 annotationvalue
- 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 lm
- 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 lm
- 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 lm
- 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 lm
- 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 annotationrankFeature
- the rankfeature.- Returns:
- the query
-
-