blob: dd149aa4948c5d2d2c01d12d642b0f19e2f78140 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
# vespa_query_dsl
This lib is used for composing vespa YQL queries
Reference: https://docs.vespa.ai/en/reference/query-language-reference.html
# usage
Please refer to the unit test:
https://github.com/vespa-engine/vespa/tree/master/client/src/test/groovy/ai/vespa/client/dsl/QTest.groovy
# todos
- [ ] support `predicate` (https://docs.vespa.ai/en/predicate-fields.html)
- [ ] support methods for checking positive/negative conditions for specific field
- [X] support order by annotation
- [X] support order by
- [X] support sub operators in contains (sameElement, phrase, near, onear, equiv)
- [X] support group syntax
- [X] support `nonEmpty`
- [X] support `dotProduct`
- [X] support `weightedSet`
- [X] support `wand`
- [X] support `weakAnd`
- [x] support `userInput`
- [x] support `rank`
- [x] support filter annotation
- [X] unit tests
- [X] support other annotations
- [X] handle edge cases (e.g. `Q.b("test").contains("a").build()`)
|