# "All Images" and "All PDF" smart groups not finding all files \[Resolved, more or less\]

**URL:** <https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008>\
**Category:** DEVONthink\
**Tags:** bug-report, devonthink3\
**Created:** [July 22, 2019, 7:20pm UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008 "2019-07-22T19:20:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmccracken1951](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kmccracken1951](https://discourse.devontechnologies.com/u/kmccracken1951)\
**Post date:** [July 22, 2019, 7:20pm UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/1 "2019-07-22T19:20:09Z")

</div>

Just noticed that the supplied “All Images” and “All PDF Documents” are finding only a small number of my image and PDF files. If I close the database and reopen it, the file counts in the sidebar are 38 and 12, respectively, which are probably the correct numbers (I haven’t actually counted them up).

However, when I select one of those smart groups, the counts change to 2 and 4 respectively, and that is all that shows in the item list. (The counts do not change back in the sidebar when I click to another group.) The files that aren’t being found all have Kind: Adobe Photoshop Elements JPEG File or Kind: PDF+Text, which is exactly the same as the few files that _are_ being found. I also tried changing the smart groups to use extension is JPG or PDF, with the same results.

I have run File\> Verify & Repair Database (which did not appear to do anything – should there be any visible dialog or message?) and File \> Optimize Database with no change in results. Should I run File \> Rebuild Database, or just trash this database and start fresh? (It seems to be jinxed.)

As with my earlier posts, all files are indexed, not imported. DT3b4

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [July 22, 2019, 9:53pm UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/2 "2019-07-22T21:53:38Z")

</div>

A screen capture may be helpful.

---

<div class="post-metadata">

**Author:** ![kmccracken1951](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kmccracken1951](https://discourse.devontechnologies.com/u/kmccracken1951)\
**Post date:** [July 22, 2019, 10:07pm UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/3 "2019-07-22T22:07:44Z")

</div>

I tried rebuilding the database with no effect, so I finally deleted the database and created a new one, first copying all my test files into a new folder and indexing them from there. Now the smart groups are working, and my other issue with searching on the filename has also disappeared.

When I rebuilt the database I got a message initially that the database seemed to be open in another instance of DT or hadn’t been properly closed. I continued with the rebuild since I knew there was no other instance open. I wonder if this message may have been an indication of some kind of corruption not fixed by Verify & Repair or Rebuild.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [July 23, 2019, 7:35am UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/4 "2019-07-23T07:35:55Z")

</div>

> [@kmccracken1951](#):
>
> or hadn’t been properly closed

Usually it wasn’t closed properly, e.g. due to a crash.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [July 23, 2019, 8:07am UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/5 "2019-07-23T08:07:04Z")

</div>

> [@kmccracken1951](#):
>
> Just noticed that the supplied “All Images” and “All PDF Documents” are finding only a small number of my image and PDF files. If I close the database and reopen it, the file counts in the sidebar are 38 and 12, respectively, which are probably the correct numbers (I haven’t actually counted them up).

Did you exclude any tags from searching, see [Search by item name or filename returning no results DT3b4 [Resolved] - #8 by cgrunenberg](https://discourse.devontechnologies.com/t/search-by-item-name-or-filename-returning-no-results-dt3b4/48997/8)?

---

<div class="post-metadata">

**Author:** ![kmccracken1951](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kmccracken1951](https://discourse.devontechnologies.com/u/kmccracken1951)\
**Post date:** [July 23, 2019, 12:31pm UTC](https://discourse.devontechnologies.com/t/all-images-and-all-pdf-smart-groups-not-finding-all-files-resolved-more-or-less/49008/6 "2019-07-23T12:31:37Z")

</div>

That was the problem, sure enough. My group tags (Surnames, Places, and Label Colors) were excluded from searching. I removed the exclusions, and now the Smart Groups show all the images and pdfs. Thanks!
