# Error when use or operator to combine more than certain number of filters

**URL:** https://forum.weaviate.io/t/error-when-use-or-operator-to-combine-more-than-certain-number-of-filters/1636
**Category:** Support
**Created:** [March 6, 2024, 10:37am UTC](https://forum.weaviate.io/t/error-when-use-or-operator-to-combine-more-than-certain-number-of-filters/1636 "2024-03-06T10:37:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shadowlin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/shadowlin/32/800_2.png) [@shadowlin](https://forum.weaviate.io/u/shadowlin)
#### Post date: [March 6, 2024, 10:37am UTC](https://forum.weaviate.io/t/error-when-use-or-operator-to-combine-more-than-certain-number-of-filters/1636/1 "2024-03-06T10:37:39Z")

</div>

### Description

If use or operator to combine filter for many times there will be a error like below happens:

```auto
weaviate/collections/grpc/query.py", line 572, in __create_request
    return search_get_pb2.SearchRequest(
google.protobuf.message.DecodeError: Error parsing message

```

code to reproduce is kinda like below:

```auto
    filters = Filter.by_property("code").contains_any("1")
    count = 1

    for code in range(500):
        count += 1
        filters |= Filter.by_property("code").contains_any(str(code))

```

### Server Setup Information

- Weaviate Server Version: 1.24.1
- Deployment Method: docker
- Multi Node? Number of Running Nodes: 1
- Client Language and Version: python 4.5.1

### Any additional Information

none

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [March 6, 2024, 9:12pm UTC](https://forum.weaviate.io/t/error-when-use-or-operator-to-combine-more-than-certain-number-of-filters/1636/2 "2024-03-06T21:12:56Z")

</div>

Hi!

This is interesting.

I will try to come up with a notebook as it will be interesting to explore on dynamic filter building with the new pyv4.

Thanks for pointing out. I will get back to you soon.

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [October 10, 2024, 7:29am UTC](https://forum.weaviate.io/t/error-when-use-or-operator-to-combine-more-than-certain-number-of-filters/1636/3 "2024-10-10T07:29:42Z")

</div>

hi!

Sorry for the delay here 😬

I believe the error here is that the filter may be too big 🤔
