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]: documentation example gives error #39607

Open
1 task done
AgNess-G opened this issue Jan 28, 2025 · 3 comments
Open
1 task done

[Bug]: documentation example gives error #39607

AgNess-G opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@AgNess-G
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

Current Behavior

using AND and IN operator as in the screenshot from documentation is giving the following error.

RPC error: [search], <MilvusException: (code=1100, message=failed to create query plan: cannot parse expression: price < {price} AND avg_rating > {avg_rating} AND colour IN {colour}, error: invalid expression: price < {price} AND avg_rating > {avg_rating} AND colour IN {colour}: invalid parameter)>

Image

but using and or in works

Image

can i get clarity if this is an error in the documentation ? if yes, can this be corrected?

Expected Behavior

No response

Steps To Reproduce

Milvus Log

No response

Anything else?

No response

@AgNess-G AgNess-G added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 28, 2025
@xiaofan-luan
Copy link
Collaborator

xiaofan-luan commented Jan 29, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Environment

Current Behavior

using AND and IN operator as in the screenshot from documentation is giving the following error.

RPC error: [search], <MilvusException: (code=1100, message=failed to create query plan: cannot parse expression: price < {price} AND avg_rating > {avg_rating} AND colour IN {colour}, error: invalid expression: price < {price} AND avg_rating > {avg_rating} AND colour IN {colour}: invalid parameter)>

Image but using `and` or `in` works Image can i get clarity if this is an error in the documentation ? if yes, can this be corrected?

Expected Behavior

No response

Steps To Reproduce

Milvus Log

No response

Anything else?

No response

The reason is for older milvus version, AND is not a keyword, you should use and or &&.

2.5.4 or 2.4.21 already support AND as a keyword

@AgNess-G
Copy link
Author

thanks. will test it there @xiaofan-luan

@yanliang567
Copy link
Contributor

/assign @AgNess-G
/unassign

@sre-ci-robot sre-ci-robot assigned AgNess-G and unassigned yanliang567 Jan 31, 2025
@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants