# Multi Vector Search in a single class

**URL:** <https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383>\
**Category:** Support\
**Tags:** integration, developer-experience\
**Created:** [July 17, 2023, 11:26am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383 "2023-07-17T11:26:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faizan\_Muzaffar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/faizan_muzaffar/32/284_2.png) [@Faizan\_Muzaffar](https://forum.weaviate.io/u/Faizan_Muzaffar)\
**Post date:** [July 17, 2023, 11:26am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/1 "2023-07-17T11:26:12Z")

</div>

Hello Everyone,

Does Weaviate provide a multi-vector search for the single class?

I have a scenario where I have a class named Sites, it has the following properties:

Site title, Description, and keywords

now when a user queries similar sites currently i am providing the title vector of the site in the near\_vector parameter but is there any other way I can also add the description and keywords vector?

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [July 17, 2023, 7:29pm UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/2 "2023-07-17T19:29:02Z")

</div>

Hi Faizan,

In Weaviate, currently each object has one vector attached to it.

So to do what you are describing, you could create different classes which are linked to each other. Alternatively, you could create multiple objects in each class, each vectorized differently.

---

<div class="post-metadata">

**Author:** ![Faizan\_Muzaffar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/faizan_muzaffar/32/284_2.png) [@Faizan\_Muzaffar](https://forum.weaviate.io/u/Faizan_Muzaffar)\
**Post date:** [July 18, 2023, 4:55am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/3 "2023-07-18T04:55:00Z")

</div>

Hello Jphwang,

Regarding that, I read the documentation for cross reference, & I think my solution will be to create a cross-reference between the classes.

In cross-reference is there any way we can do a parent childs relation?

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [July 18, 2023, 9:13am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/4 "2023-07-18T09:13:45Z")

</div>

Hi @Faizan_Muzaffar. I’m not sure what you mean specifically by “parent” and “child” relationship, but each cross reference is one-directional, so there’s a distinction between a reference “from” and a reference “to”.

> **[Cross-references | Weaviate - vector database](https://weaviate.io/developers/weaviate/manage-data/cross-references)**
>
> Overview

---

<div class="post-metadata">

**Author:** ![Faizan\_Muzaffar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/faizan_muzaffar/32/284_2.png) [@Faizan\_Muzaffar](https://forum.weaviate.io/u/Faizan_Muzaffar)\
**Post date:** [July 18, 2023, 9:42am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/5 "2023-07-18T09:42:56Z")

</div>

Thanks @jphwang, Just another question when searched with the near vector FROM class, will it return the TO class?

---

<div class="post-metadata">

**Author:** ![Faizan\_Muzaffar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/faizan_muzaffar/32/284_2.png) [@Faizan\_Muzaffar](https://forum.weaviate.io/u/Faizan_Muzaffar)\
**Post date:** [July 18, 2023, 10:40am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/6 "2023-07-18T10:40:04Z")

</div>

> [@Multi Vector Search in a single class](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/4):
>
> Hi @Faizan_Muzaffar. I’m not sure what you mean specifically by “parent” and “child” relationship, but each cross reference is one-directional, so there’s a distinction between a reference “from” and a reference “to”.

Hi @jphwang,

I just want to ask if we can create the cross-reference using graphQL.

because I am currently using a PHP client([GitHub - timkley/weaviate-php: A PHP client to communicate with a Weaviate instance](https://github.com/timkley/weaviate-php)). and in this plugin, there is no endpoint to create the cross-reference.

so can we do this using graphQL and if yes, is there any example you can provide?

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [July 18, 2023, 11:00am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/7 "2023-07-18T11:00:08Z")

</div>

HI @Faizan_Muzaffar

I am not sure what the PHP client can and can’t do, but you can create cross-references with the REST endpoints directly in Weaviate.

Please take a look here:

> **[REST - /v1/objects | Weaviate - vector database](https://weaviate.io/developers/weaviate/api/rest/objects#example-request-7)**
>
> List data objects

I note that the GraphQL is used for queries.

Cheers,  
JP

---

<div class="post-metadata">

**Author:** ![Hari\_Wu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/hari_wu/32/1944_2.png) [@Hari\_Wu](https://forum.weaviate.io/u/Hari_Wu)\
**Post date:** [July 14, 2024, 9:52am UTC](https://forum.weaviate.io/t/multi-vector-search-in-a-single-class/383/8 "2024-07-14T09:52:21Z")

</div>

I hope this can help you. [Create objects](https://weaviate.io/developers/weaviate/manage-data/create)
