Skip to content

Latest commit

 

History

History
 
 

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

vespa_query_dsl

This lib is used for composing vespa YQL queries

Reference: https://docs.vespa.ai/documentation/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/documentation/predicate-fields.html)
  • support methods for checking positive/negative conditions for specific field
  • support order by annotation
  • support order by
  • support sub operators in contains (sameElement, phrase, near, onear, equiv)
  • support group syntax
  • support nonEmpty
  • support dotProduct
  • support weightedSet
  • support wand
  • support weakAnd
  • support userInput
  • support rank
  • support filter annotation
  • unit tests
  • support other annotations
  • handle edge cases (e.g. Q.b("test").contains("a").build())