vespa-engine / vespa

AI + Data, online. https://vespa.ai
https://vespa.ai
Apache License 2.0
5.78k stars 604 forks source link

YQL string / query API builder #16874

Closed kkraune closed 2 years ago

kkraune commented 3 years ago

The querybuilder linked from https://docs.vespa.ai/en/vespa-quick-start.html is a bit basic.

Build better support for making valid YQL query strings by using a dynamic form. Split the YQL string in logically separate parts

(for queries, use a higher timeout, so first query is 200 OK - it seems it times out first time, bad user experience)

sbourke commented 3 years ago

@kkraune Couuld you expand at all on this ? I'm looking at it as part of the hacktogether.

kkraune commented 3 years ago

Hi @sbourke !

http://localhost:8080/querybuilder/ is not very helpful to aid the user in building the YQL query string, ref https://docs.vespa.ai/en/query-language.html (YQL)

It would be great having a tool that looks at the schema(s) so field and schema names are known, and maybe generate an example to work from, ref the examples in https://docs.vespa.ai/en/query-language.html. generate a UI based on the available fields, maybe? think of what would make it easy for you to get started writing queries to Vespa

kkraune commented 2 years ago

New query builder available at https://github.com/vespa-engine/vespa/tree/master/client/js/app