# Searching problems

**URL:** <https://forums.plex.tv/t/searching-problems/703644>\
**Category:** Plex Media Server\
**Tags:** server-mac\
**Created:** [March 24, 2021, 5:15pm UTC](https://forums.plex.tv/t/searching-problems/703644 "2021-03-24T17:15:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrg\_uk](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jrg\_uk](https://forums.plex.tv/u/jrg_uk)\
**Post date:** [March 24, 2021, 5:15pm UTC](https://forums.plex.tv/t/searching-problems/703644/1 "2021-03-24T17:15:02Z")

</div>

I think there’s something newly broken with indexing, and search.

I don’t know if it’s related, but since the past few server updates searching for anything in my local media library comes up empty (and that’s a Plex server running on MacOS, searching with any mobile client or web interface.)

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [March 24, 2021, 5:49pm UTC](https://forums.plex.tv/t/searching-problems/703644/2 "2021-03-24T17:49:21Z")

</div>

I’m moving this into a separate thread as it’s not related.  
Just double-checked on my own server and I cannot reproduce this behavior… would you mind sharing some details on what you search that’s no longer coming up?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 24, 2021, 6:46pm UTC](https://forums.plex.tv/t/searching-problems/703644/3 "2021-03-24T18:46:36Z")

</div>

Broken search can be a damaged index. The last update brought a massive change in this very field.  
I’d say look out for reports of database damage in your server log:

1. [activate debug](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/ "activate debug") logging ( **not** ‘verbose’!)
2. quit Plex Server
3. wait 1 minute
4. start Plex Server
5. wait 5 minutes
6. [fetch log files](https://support.plex.tv/hc/en-us/articles/200250417 "fetch log files") and attach them here

Or inspect them yourself. Take a look at the `Plex Media Server.log` file and seek for messages about database `corrupt` or `malformed`.  
If you find these, you may have to repair your database.

> **[Repair a Corrupt Database | Plex Support](https://support.plex.tv/articles/201100678-repair-a-corrupt-database/)**
>
> Though rare, it is possible for your main Plex Media Server database to become corrupted. For instance, it might happen...

---

<div class="post-metadata">

**Author:** ![jrg\_uk](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jrg\_uk](https://forums.plex.tv/u/jrg_uk)\
**Post date:** [March 26, 2021, 9:35pm UTC](https://forums.plex.tv/t/searching-problems/703644/4 "2021-03-26T21:35:19Z")

</div>

(Useful to know that there were recent changes to indexing. I didn’t particularly remember seeing anything in the release notes, except I did know that there have also been some changes related to seeing Plex pass content in Apple TV - and I run an Apple TV client and I have a Plex pass.)

There’s nothing showing `corrupt` or `malformed`, but… it did occur to me, when looking through what else was logged, that I think it was recently I switched to the “Plex Movie” database (would I have had “Plex Movie Legacy” before, if I set up some time ago?), after moving some of my library around between disks and realising I was getting very strange title matches against old films. However, I am still using “TheTVDB” for TV series, with Plex Series Scanner, and they’re not showing up in search results either.

I’ll read through some of the steps about checking the database integrity, in the “Repair a Corrupt Database” doc that you linked to, and see if anything shows up in the current and various upgrade backup versions. (I’ve just found the thread which discusses the new `icu_root` collation - [Hoping for help with DB Corruption](https://forums.plex.tv/t/hoping-for-help-with-db-corruption/701344))

---

<div class="post-metadata">

**Author:** ![jrg\_uk](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jrg\_uk](https://forums.plex.tv/u/jrg_uk)\
**Post date:** [March 26, 2021, 9:50pm UTC](https://forums.plex.tv/t/searching-problems/703644/5 "2021-03-26T21:50:19Z")

</div>

Well, that’s interesting. `DROP`ping the `index_title_sort_icu` index and letting Plex recreate it on start-up has brought the local search results back.

That makes sense. Hopefully that’ll be a useful data point for someone.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 27, 2021, 5:24am UTC](https://forums.plex.tv/t/searching-problems/703644/6 "2021-03-27T05:24:15Z")

</div>

> [@jrg\_uk](#):
>
> index\_title\_sort\_icu

This is the new index which was being created for the [better search support](https://forums.plex.tv/t/plex-media-server/30447/410). It is a rather extensive operation and if it’s for some reason interrupted, you’ll end up with an un-usable search index.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 25, 2021, 5:24am UTC](https://forums.plex.tv/t/searching-problems/703644/7 "2021-06-25T05:24:54Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
