# Can't use Indexer (Code Search) with migrations

**URL:** <https://forum.gitea.com/t/cant-use-indexer-code-search-with-migrations/3355>\
**Category:** Install/Maintain/Configure\
**Created:** [June 9, 2021, 2:59pm UTC](https://forum.gitea.com/t/cant-use-indexer-code-search-with-migrations/3355 "2021-06-09T14:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SafaG](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@SafaG](https://forum.gitea.com/u/SafaG)\
**Post date:** [June 9, 2021, 2:59pm UTC](https://forum.gitea.com/t/cant-use-indexer-code-search-with-migrations/3355/1 "2021-06-09T14:59:27Z")

</div>

Hello,

Firstly thank you so much for this awesome project!

I am using Gitea Version 1.14.2. I have enabled indexer and tried using code search on migrated repos however it did not work. I had found a “manual” solution to fix this from a post that was 3 years ago which was to delete the indexer folder and restart Gitea. After doing so it worked! My only problem is that this is a manual step and after every migration we would need to delete indexer folder and restart Gitea. Is there a better way of doing this?

Thank you!

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [March 5, 2022, 3:55am UTC](https://forum.gitea.com/t/cant-use-indexer-code-search-with-migrations/3355/2 "2022-03-05T03:55:25Z")

</div>

Please upgrade to v1.16.3, there is a known issue which has been fixed in recent versions.
