-
Notifications
You must be signed in to change notification settings - Fork 3k
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: support json index #36750
base: master
Are you sure you want to change the base?
feat: support json index #36750
Conversation
@sunby Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
7ececff
to
68a0644
Compare
@sunby go-sdk check failed, comment |
@sunby E2e jenkins job failed, comment |
@sunby go-sdk check failed, comment |
@sunby go-sdk check failed, comment |
1 similar comment
@sunby go-sdk check failed, comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #36750 +/- ##
==========================================
+ Coverage 81.11% 82.92% +1.80%
==========================================
Files 1395 1099 -296
Lines 197434 170918 -26516
==========================================
- Hits 160154 141728 -18426
+ Misses 31641 23548 -8093
- Partials 5639 5642 +3
|
@sunby E2e jenkins job failed, comment |
Are you done with this feature so I can start to review it? |
@sunby E2e jenkins job failed, comment |
@sunby go-sdk check failed, comment |
@sunby cpp-unit-test check failed, comment |
@sunby E2e jenkins job failed, comment |
@sunby go-sdk check failed, comment |
@sunby go-sdk check failed, comment |
@sunby E2e jenkins job failed, comment |
@sunby cpp-unit-test check failed, comment |
@sunby go-sdk check failed, comment |
@sunby E2e jenkins job failed, comment |
@sunby go-sdk check failed, comment |
rerun go-sdk |
@sunby go-sdk check failed, comment |
@sunby cpp-unit-test check failed, comment |
@sunby E2e jenkins job failed, comment |
/run-cpu-e2e |
@sunby E2e jenkins job failed, comment |
/run-cpu-e2e |
@sunby E2e jenkins job failed, comment |
@sunby go-sdk check failed, comment |
@sunby E2e jenkins job failed, comment |
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 <sunbingyi1992@gmail.com>
Signed-off-by: sunby <sunbingyi1992@gmail.com>
Signed-off-by: sunby <sunbingyi1992@gmail.com>
@sunby cpp-unit-test check failed, comment |
@sunby E2e jenkins job failed, comment |
@sunby cpp-unit-test check failed, comment |
@sunby E2e jenkins job failed, comment |
#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:
There are some limits to use this index: