yanlinw
CDCloudflare Developers
•Created by yanlinw on 10/28/2024 in #vectorize
Given the limitations of the meta-
ok thx
6 replies
CDCloudflare Developers
•Created by yanlinw on 10/28/2024 in #vectorize
Given the limitations of the meta-
thanks !
wrt creating idx in this case i can not create index for the parent key pandas right? since its value is object type, for example, npx wrangler vectorize create-metadata-index <your-index> --property-name=pandas --type=object
6 replies
CDCloudflare Developers
•Created by yanlinw on 10/28/2024 in #vectorize
Given the limitations of the meta-
@garvitg thanks for the reply. Yes i figured the depth 1 limitation.
Now, how do you perform filtering? First, the documentation states that a metadata index must be created to enable filtering. However, the API documentation suggests that setting returnMetadata: "all" allows filtering without an index. My testing shows this is not accurate—it seems filtering is only possible with an index. Could someone confirm this? Secondly, regarding filtering on a nested key: in the example from the documentation, how would one create an index and filter by the key "pandas" when its type is an object rather than a primitive, as in "pandas.nice"?
Now, how do you perform filtering? First, the documentation states that a metadata index must be created to enable filtering. However, the API documentation suggests that setting returnMetadata: "all" allows filtering without an index. My testing shows this is not accurate—it seems filtering is only possible with an index. Could someone confirm this? Secondly, regarding filtering on a nested key: in the example from the documentation, how would one create an index and filter by the key "pandas" when its type is an object rather than a primitive, as in "pandas.nice"?
6 replies