-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Open
sunby
wants to merge
10
commits into
milvus-io:master
Choose a base branch
from
sunby:add_json_index
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: support json index #36750
+975
−137
Commits on Nov 7, 2024
-
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]>
Configuration menu - View commit details
-
Copy full SHA for ea427d3 - Browse repository at this point
Copy the full SHA ea427d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4360b2 - Browse repository at this point
Copy the full SHA a4360b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ba0549 - Browse repository at this point
Copy the full SHA 1ba0549View commit details -
Configuration menu - View commit details
-
Copy full SHA for 805df78 - Browse repository at this point
Copy the full SHA 805df78View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2aea02 - Browse repository at this point
Copy the full SHA d2aea02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ffb51c - Browse repository at this point
Copy the full SHA 0ffb51cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac0d4ce - Browse repository at this point
Copy the full SHA ac0d4ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cadfb0 - Browse repository at this point
Copy the full SHA 0cadfb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a857eda - Browse repository at this point
Copy the full SHA a857edaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6add46 - Browse repository at this point
Copy the full SHA b6add46View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.