Package ai.vespa.client.dsl
Class Query
java.lang.Object
ai.vespa.client.dsl.QueryChain
ai.vespa.client.dsl.Query
Vespa query object
-
Method Summary
Modifier and TypeMethodDescriptionand
(QueryChain query) And.And.andnot
(QueryChain query) Andnot.Andnot.annotate
(Annotation annotation) Annotate a query (sub-expression).getQuery()
Group.Group.boolean
hasNegativeSearchField
(String fieldName) boolean
hasNegativeSearchField
(String fieldName, Object value) boolean
hasPositiveSearchField
(String fieldName) boolean
hasPositiveSearchField
(String fieldName, Object value) limit
(int hits) Limit.offset
(int offset) Offset.or
(QueryChain query) Or.Or.orderByAsc
(Annotation annotation, String fieldName) Order by asc.orderByAsc
(String fieldName) Order by asc.orderByDesc
(Annotation annotation, String fieldName) Order by desc.orderByDesc
(String fieldName) Order by desc.Semicolon.void
setSources
(Sources sources) timeout
(int timeout) Timeout.toString()
-
Method Details
-
toString
-
and
And. https://docs.vespa.ai/en/reference/query-language-reference.html#and- Parameters:
fieldName
- the field name- Returns:
- the field
-
andnot
Andnot. https://docs.vespa.ai/en/reference/query-language-reference.html#andnot- Parameters:
fieldName
- the field name- Returns:
- the field
-
or
Or. https://docs.vespa.ai/en/reference/query-language-reference.html#or- Parameters:
fieldName
- the field name- Returns:
- the field
-
and
And. https://docs.vespa.ai/en/reference/query-language-reference.html#and- Parameters:
query
- the query- Returns:
- the query
-
andnot
Andnot. https://docs.vespa.ai/en/reference/query-language-reference.html#andnot- Parameters:
query
- the query- Returns:
- the query
-
or
Or. https://docs.vespa.ai/en/reference/query-language-reference.html#or- Parameters:
query
- the query- Returns:
- the query
-
annotate
Annotate a query (sub-expression). https://docs.vespa.ai/en/reference/query-language-reference.html#annotations-of-sub-expressions- Parameters:
annotation
- the annotation- Returns:
- the query
-
offset
Offset. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset- Parameters:
offset
- the offset- Returns:
- the end query
-
limit
Limit. https://docs.vespa.ai/en/reference/query-language-reference.html#limit-offset- Parameters:
hits
- the hits- Returns:
- the end query
-
timeout
Timeout. https://docs.vespa.ai/en/reference/query-language-reference.html#timeout- Parameters:
timeout
- the timeout- Returns:
- the end query
-
group
Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping- Parameters:
group
- the group- Returns:
- the end query
-
group
Group. https://docs.vespa.ai/en/reference/query-language-reference.html#grouping- Parameters:
groupStr
- the group str- Returns:
- the end query
-
orderByAsc
Order by asc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
fieldName
- the field name- Returns:
- the end query
-
orderByAsc
Order by asc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
annotation
- the annotationfieldName
- the field name- Returns:
- the end query
-
orderByDesc
Order by desc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
fieldName
- the field name- Returns:
- the end query
-
orderByDesc
Order by desc. https://docs.vespa.ai/en/reference/query-language-reference.html#order-by- Parameters:
annotation
- the annotationfieldName
- the field name- Returns:
- the end query
-
semicolon
Semicolon. turn a query into fixed query.- Returns:
- the fixed query
-
getSources
-
setSources
-
getQuery
-
getSelect
-
hasPositiveSearchField
-
hasPositiveSearchField
-
hasNegativeSearchField
-
hasNegativeSearchField
-