z-yuxie opened a new issue, #2753: URL: https://github.com/apache/incubator-hugegraph/issues/2753
### Problem Type (问题类型) gremlin (结果不合预期) ### Before submit - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents) ### Environment (环境信息) - Server Version: 1.5.0 (Apache Release Version) - Backend: RocksDB x nodes, HDD or SSD - OS: win11内部使用docker desktop基于官方镜像启动 - Data Size: 1W vertices, 2W edges docker compose file: ```yaml version: '3' services: hugegraph-server: image: hugegraph/hugegraph:1.5.0 container_name: hugegraph-server ports: - 8080:8080 networks: - hugegraph-net hugegraph-hubble: image: hugegraph/hubble:1.5.0 container_name: hugegraph-hubble ports: - 8088:8088 depends_on: - hugegraph-server networks: - hugegraph-net networks: hugegraph-net: driver: bridge ``` ### Your Question (问题描述) 我定义了一个节点类型org,其带有2个属性,name single string、alias set string 并分别为其创建了索引(没显示出来的索引类型是唯一索引)   然后我通过java客户端向其中写入了几千个org类型的节点数据,构造数据的语法大概是: ```java String orgName = generateChineseOrgName(); // 地名+行业+'公司' List<String> aliases = new ArrayList<>(); aliases.add(orgName); aliases.add(orgName + "公司"); Vertex org = new Vertex("org") .property("name", orgName) .property("alias", aliases); ``` 在此之后我通过匹配org的name是能够正常查询出结果的  但是当我尝试通过匹配多值属性alias中的某个属性值匹配出节点时,却得到了匹配方式错误的错误提示  替换查询语法,增加对contains、testConstains、withIn的函数调用后则得到了函数不存在的报错提示  在swagger页面使用rest api调用也得到了相同的错误  我想知道该如何才能实现基于多值属性中的某一个或多个值匹配出包含目标属性值的节点出来? ### Vertex/Edge example (问题点 / 边数据举例) ```javascript // Query Curl curl -X 'POST' \ 'http://localhost:8080/gremlin' \ -H 'accept: application/json;charset=UTF-8' \ -H 'Content-Type: application/json' \ -d '{ "gremlin":"hugegraph.traversal().V().hasLabel('\''org'\'').has('\''alias'\'', '\''广州软件'\'').limit(10)", "bidings":{}, "language":"gremlin-groovy", "aliases":{} }' // response // header connection: close content-length: 182 content-type: application/json // body { "exception": "java.lang.IllegalStateException", "message": "The relation of property 'alias' must be CONTAINS or TEXT_CONTAINS, but got EQ", "cause": "[java.lang.IllegalStateException]" } ``` ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) ```javascript // Query Curl curl --location 'http://localhost:8080/graphs/hugegraph/schema/vertexlabels' \ --header 'accept: application/json;charset=UTF-8' // Json Schema { "id": 12, "name": "org", "id_strategy": "PRIMARY_KEY", "primary_keys": [ "name" ], "nullable_keys": [], "index_labels": [ "orgByAlias", "orgByAliasUinque" ], "properties": [ "alias", "name" ], "status": "CREATED", "ttl": 0, "enable_label_index": true, "user_data": { "~create_time": "2025-04-14 01:59:22.765", "~style": "{\"icon\":\"\",\"color\":\"#5C73E6\",\"size\":\"NORMAL\",\"display_fields\":[\"~id\"],\"join_symbols\":[\"-\"]}" } } // Query Curl curl --location 'http://localhost:8080/graphs/hugegraph/schema/propertykeys' \ --header 'accept: application/json;charset=UTF-8' // Json Schema { "propertykeys": [ { "id": 19, "name": "alias", "data_type": "TEXT", "cardinality": "SET", "aggregate_type": "NONE", "write_type": "OLTP", "properties": [], "status": "CREATED", "user_data": { "~create_time": "2025-04-11 10:04:58.549" } }, { "id": 12, "name": "name", "data_type": "TEXT", "cardinality": "SINGLE", "aggregate_type": "NONE", "write_type": "OLTP", "properties": [], "status": "CREATED", "user_data": { "~create_time": "2025-04-11 06:58:05.376" } } ] } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org