# Migration from compact to hnsw

**URL:** https://forum.weaviate.io/t/migration-from-compact-to-hnsw/1046
**Category:** General
**Created:** [November 30, 2023, 4:41pm UTC](https://forum.weaviate.io/t/migration-from-compact-to-hnsw/1046 "2023-11-30T16:41:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Matheus\_Carneiro](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/matheus_carneiro/32/641_2.png) [@Matheus\_Carneiro](https://forum.weaviate.io/u/Matheus_Carneiro)
#### Post date: [November 30, 2023, 4:41pm UTC](https://forum.weaviate.io/t/migration-from-compact-to-hnsw/1046/1 "2023-11-30T16:41:31Z")

</div>

Hello, I just remade rebuild my code structure to use multitenant, but the index generated before was lsm\_compation with \_Node. How to migrate to hnsw style without loosing my indexes?

---

<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: [November 30, 2023, 7:45pm UTC](https://forum.weaviate.io/t/migration-from-compact-to-hnsw/1046/2 "2023-11-30T19:45:49Z")

</div>

Hi Matheus!

You will have to run thru all your objects, and import them on a new class with the proper configurations you want.

For that, you can use the Cursor API:

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

Let me know if that helps 🙂
