# DB optimize deletes document search index

**URL:** <https://community.stardog.com/t/db-optimize-deletes-document-search-index/4948>\
**Category:** Bug\
**Created:** [June 5, 2024, 1:44am UTC](https://community.stardog.com/t/db-optimize-deletes-document-search-index/4948 "2024-06-05T01:44:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcbiddle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jcbiddle/32/2123_2.png) [@jcbiddle](https://community.stardog.com/u/jcbiddle)\
**Post date:** [June 5, 2024, 1:44am UTC](https://community.stardog.com/t/db-optimize-deletes-document-search-index/4948/1 "2024-06-05T01:44:04Z")

</div>

I've noticed that if I upload a document to the BITES storage and optimize the database through Stardog Studio, I no longer get any results from full-text searches over the documents. To get search results again, I have to explicitly reindex the document store via the CLI. This bug only seems to affect documents, with literals still being correctly indexed after the optimize command.
