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

DB and space are not used consistent when using different name #8

Open
ziyunxiao opened this issue Mar 15, 2021 · 0 comments
Open

DB and space are not used consistent when using different name #8

ziyunxiao opened this issue Mar 15, 2021 · 0 comments

Comments

@ziyunxiao
Copy link

ziyunxiao commented Mar 15, 2021

Hello,

I discovered that if you use a different name for DB and space, some APIs will return the wrong result. for example, get image by id. Which causes confusion.

To reproduce the issue you can create a DB as "zerobox" and a space as "bottles".
Then insert an image into the space after that run API get image by id

# insert image
POST {{vearch_url}}/zerobox/bottles/black1

{
  "keyword": "Black Bottle",
  "url": "/images/test_black_1.jpg",
  "image": {
    "feature": "/images/test_black_1.jpg"
  },
  "tags": [
    "black",
    "straight"
  ]
}

# get image by id
GET {{vearch_url}}/zerobox/bottles/black1

# the result is wrong, it should be found.
{"_index":"zerobox","_type":"bottles","_id":"black1","found":false}

If this is an expected behaviour, it is better documented in README.

Thanks,

Robin

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

1 participant