-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat: cherry pick json path index #40313
base: 2.5
Are you sure you want to change the base?
Conversation
milvus-io#39254 Signed-off-by: sunby <[email protected]>
milvus-io#39254 --------- Signed-off-by: sunby <[email protected]>
milvus-io#35528 This PR adds json index support for json and dynamic fields. Now you can only do unary query like 'a["b"] > 1' using this index. We will support more filter type later. basic usage: ``` collection.create_index("json_field", {"index_type": "INVERTED", "params": {"json_cast_type": DataType.STRING, "json_path": 'json_field["a"]["b"]'}}) ``` There are some limits to use this index: 1. If a record does not have the json path you specify, it will be ignored and there will not be an error. 2. If a value of the json path fails to be cast to the type you specify, it will be ignored and there will not be an error. 3. A specific json path can have only one json index. 4. If you try to create more than one json indexes for one json field, sdk(pymilvus<=2.4.7) may return immediately because of internal implementation. This will be fixed in a later version. --------- Signed-off-by: sunby <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunby The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Invalid PR Title Format Detected Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:
Required Title Structure:
Where Example:
Please review and update your PR to comply with these guidelines. |
@sunby cpp-unit-test check failed, comment |
@sunby go-sdk check failed, comment |
…ilvus-io#40076) issue: milvus-io#35528 If the query data type does not match the index type, fall back to a brute-force search --------- Signed-off-by: sunby <[email protected]>
issue: milvus-io#35528 --------- Signed-off-by: sunby <[email protected]>
@sunby cpp-unit-test check failed, comment |
@sunby go-sdk check failed, comment |
@sunby E2e jenkins job failed, comment |
issue: #35528
this pr includes json path index pr and some related prs: