Skip to content

Advanced Filtering on Array Fields in Milvus Lite gives "Invalid expr" error #35279

Discussion options

You must be logged in to vote

client = MilvusClient("Test.db") ------------------- This is a milvus lite, which is a lightweight milvus, it only supports part of functions. Array type is not supported by milvus lite.

Follow this document to deploy a milvus standalone server in local:
https://milvus.io/docs/install_standalone-docker-compose.md

If the deployment is correct, you will see 3 containers:

Then use this script to test:

import random
import time

from pymilvus import (
    MilvusClient, Index,
    FieldSchema, CollectionSchema, DataType,
    utility,
)


client = MilvusClient("http://localhost:19530")

collection_name = "AAA"
dim = 128
metric_type = "COSINE"

schema = CollectionSchema(
    fields=[
        Fi…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@MohmedMonsef
Comment options

@yhmo
Comment options

yhmo Aug 5, 2024
Collaborator

Answer selected by MohmedMonsef
@MohmedMonsef
Comment options

@ifrancke-pryoninc
Comment options

Comment options

You must be logged in to vote
1 reply
@junjiejiangjjj
Comment options

Comment options

You must be logged in to vote
1 reply
@ifrancke-pryoninc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants