Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No 'input' query param when use "vespa query yql=xxx" #30907

Closed
zshnb opened this issue Apr 13, 2024 · 4 comments
Closed

No 'input' query param when use "vespa query yql=xxx" #30907

zshnb opened this issue Apr 13, 2024 · 4 comments
Assignees

Comments

@zshnb
Copy link

zshnb commented Apr 13, 2024

Describe the bug
try to use vespa query 'yql=select * from sources * where true' to get all documents, but get error

No 'input' query param

To Reproduce
Steps to reproduce the behavior:

  1. using docker start vespa
  2. vespa query 'yql=select * from sources * where true'
  3. See error

Expected behavior
output all documents

Screenshots
image

Environment (please complete the following information):

  • OS: MacOS
  • Infrastructure: self-hosted
  • Versions 14.4.1

Vespa version
8.328.24

Additional context
none

@jobergum
Copy link
Member

This is because you are using a sample app that expects that there is a query input passed in input and that rejects the request if it's not present. You can run your query by passing the search chain and use the build in vespa chain. Add searcChain=vespa

@thomasht86
Copy link

Did you sort this out?
Here is the reference to searchChain
Here, you can see that this app is using mychain which directs query to TextEmbeddingSearcher, which needs input as a paremeter.

@zshnb
Copy link
Author

zshnb commented Apr 15, 2024

yes I've solve this

@zshnb zshnb closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants