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

[BUG] model search api fails when using _source_includes/_source_excludes #160

Closed
jmazanec15 opened this issue Oct 28, 2021 · 0 comments
Closed
Assignees
Labels
bug Something isn't working v1.2.0 release

Comments

@jmazanec15
Copy link
Member

What is the bug?
Model search api fails when using query filters _source_includes/_source_excludes

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Create a model
  2. Search for that model with the following params:
curl "localhost:9200/_plugins/_knn/models/_search?pretty&_source_excludes=model_blob"

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Cannot construct model in state CREATED when model binary is null. State must be either TRAINING or FAILED"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Cannot construct model in state CREATED when model binary is null. State must be either TRAINING or FAILED"
  },
  "status" : 400
}

curl "localhost:9200/_plugins/_knn/models/_search?pretty&_source_includes=model_id"

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Invalid engine type: null"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Invalid engine type: null"
  },
  "status" : 400
}

What is the expected behavior?
Expected query results to return filtered hits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.2.0 release
Projects
None yet
Development

No branches or pull requests

2 participants