# Filtering on nested properties?

**URL:** <https://forum.weaviate.io/t/filtering-on-nested-properties/4312>\
**Category:** Support\
**Created:** [September 25, 2024, 12:07pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312 "2024-09-25T12:07:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasper\_van\_den\_Berg](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jasper_van_den_berg/32/2268_2.png) [@Jasper\_van\_den\_Berg](https://forum.weaviate.io/u/Jasper_van_den_Berg)\
**Post date:** [September 25, 2024, 12:07pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/1 "2024-09-25T12:07:02Z")

</div>

### Description

I’m trying to filter on nested properties of my data, but getting this error:

> grpc.\_channel.\_InactiveRpcError: \<\_InactiveRpcError of RPC that terminated with:  
> status = StatusCode.UNKNOWN  
> details = “explorer: get class: vector search: object vector search at index idx\_23a2d2a3005d23f9bbe689206ca32fb5: shard idx\_23a2d2a3005d23f9bbe689206ca32fb5\_A3OTVDfioAKG: build inverted filter allow list: nested query: nested clause at pos 7: data type “object” not supported in query”  
> debug\_error\_string = “UNKNOWN:Error received from peer {created\_time:“2024-09-25T13:48:00.981306+02:00”, grpc\_status:2, grpc\_message:“explorer: get class: vector search: object vector search at index idx\_23a2d2a3005d23f9bbe689206ca32fb5: shard idx\_23a2d2a3005d23f9bbe689206ca32fb5\_A3OTVDfioAKG: build inverted filter allow list: nested query: nested clause at pos 7: data type "object" not supported in query”}”\> \>

I’m not sure if I’m incorrectly refering to the property in the filters, which I’m doing through `Filter.by_property(<property_name.nested_property_name>)`.

Example of the filters:

```auto
retriever_filters = {'filters': [_FilterValue(value='Computer Tower', operator=<_Operator.LIKE: 'Like'>, target='details.Form_Factor'), _FilterValue(value='NVIDIA', operator=<_Operator.LIKE: 'Like'>, target='details.Graphics_Card_Description'), _FilterValue(value='AMD', operator=<_Operator.LIKE: 'Like'>, target='details.Graphics_Card_Description'), _FilterValue(value=['16 GB', '32 GB', '64 GB'], operator=<_Operator.CONTAINS_ANY: 'ContainsAny'>, target='details.RAM'), _FilterValue(value=['Intel Core i7', 'Intel Core i5', 'Ryzen 5'], operator=<_Operator.CONTAINS_ANY: 'ContainsAny'>, target='details.CPU_Model'), _FilterValue(value='gaming', operator=<_Operator.LIKE: 'Like'>, target='details.Brand')]}

```

### Server Setup Information

- Weaviate Server Version: 1.26.3 ( Docker image )
- Deployment Method: Docker
- Multi Node? Number of Running Nodes:  
I’m not sure I’m deploying it through:

```auto
docker run -p 8080:8080 -p 50051:50051 --env-file .env.local -e QUERY_DEFAULTS_LIMIT=20 -e AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true -e PERSISTENCE_DATA_PATH=/data -v weaviate_data:/data semitechnologies/weaviate:1.26.3

```

where .env.local:

```auto
ENVIRONMENT=local
HOST=0.0.0.0
PORT=80
ACCESSIBLE_HOST=localhost
ACCESSIBLE_PORT=8000
GOOGLE_APPLICATION_CREDENTIALS=/code/app/auth.json
WEAVIATE_SERVER_URL=http://weaviate:8080
WEAVIATE_SERVER_GRPC_PORT=50051
OPENAI_API_KEY=<key>

```

- Client Language and Version:  
langchain-weaviate==0.0.2  
weaviate-client==4.6.4  
python 3.11.9
- Multitenancy?:  
Not that I know of, using default configs

## Additional information

The vector store is created through the LangChain FastAPI backend using langchain-weaviate:

```auto
WeaviateVectorStore.from_documents(
    documents,
    client=WeaviateClient(connection_params=ConnectionParams.from_url("http://localhost:8080", 50051)),
    embedding=OpenAIEmbeddings(api_key=os.environ["OPENAI_API_KEY"]),
    index_name=index_name
)

```

loaded through:

```auto
WeaviateVectorStore(
    client=WeaviateClient(connection_params=ConnectionParams.from_url("http://localhost:8080", 50051)),
    embedding=OpenAIEmbeddings(api_key=os.environ["OPENAI_API_KEY"]),
    index_name=index_name,
    text_key="text"
)

```

and queried through:

```auto
WeaviateVectorStore.as_retriever(search_type="similarity",search_kwargs={"k": 50, "filters": retriever_filters})

```

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dirk/32/46_2.png) [@Dirk](https://forum.weaviate.io/u/Dirk)\
**Post date:** [September 26, 2024, 9:00am UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/2 "2024-09-26T09:00:37Z")

</div>

> [@Jasper\_van\_den\_Berg](#):
>
> filter on nested properties of my data

Hi, this is not supported at the moment

---

<div class="post-metadata">

**Author:** ![Arnoud](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/arnoud/32/2413_2.png) [@Arnoud](https://forum.weaviate.io/u/Arnoud)\
**Post date:** [September 27, 2024, 3:48pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/3 "2024-09-27T15:48:52Z")

</div>

I noticed that it is high on the backlog and was wondering if it is expected to be integrated in the foreseeable future.

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dirk/32/46_2.png) [@Dirk](https://forum.weaviate.io/u/Dirk)\
**Post date:** [September 27, 2024, 5:07pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/4 "2024-09-27T17:07:52Z")

</div>

AFAIK it is not scheduled yet - will probably come at some point, but I sadly cannot give anything more concrete than that

---

<div class="post-metadata">

**Author:** ![Arnoud](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/arnoud/32/2413_2.png) [@Arnoud](https://forum.weaviate.io/u/Arnoud)\
**Post date:** [September 27, 2024, 6:56pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/5 "2024-09-27T18:56:44Z")

</div>

Thank you for your reply!

---

<div class="post-metadata">

**Author:** ![ublrama](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/ublrama/32/1869_2.png) [@ublrama](https://forum.weaviate.io/u/ublrama)\
**Post date:** [January 28, 2025, 3:25pm UTC](https://forum.weaviate.io/t/filtering-on-nested-properties/4312/6 "2025-01-28T15:25:50Z")

</div>

@Dirk IS there an update on when this will be picked up! I finally got around to implement and was very pleased with the nested object property. Now that you can filter it, makes it useless. Why offer this kind of data type if you cannot use it…
