# "Update indexed items" does nothing

**URL:** https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468
**Category:** DEVONthink
**Created:** [May 13, 2021, 10:17pm UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468 "2021-05-13T22:17:10Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 13, 2021, 10:17pm UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/1 "2021-05-13T22:17:10Z")

</div>

I have a folder with many pdfs which have been indexed in Devonthink some time ago. Today I added a new pdf file to the folder. Since Devonthing did not automatically discover it, I pressed “Update Indexed Items” in the File-menu. But this does nothing whatsoever. Well, one strange thing is happening. Every now and then (I have tried Updating the Indexed files about 50 times by now) I notice that the number of items in the group is reduced by one. So instead of adding my new file to the index it seems to be taking away some. Sometimes. For no reason.

Is this a bug? I’m on DT 3.7.1 on Big Sur (11.3).

---

<div class="post-metadata">

### Author: ![mksBelper](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mksbelper/32/20324_2.png) [@mksBelper](https://discourse.devontechnologies.com/u/mksBelper)
#### Post date: [May 13, 2021, 10:26pm UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/2 "2021-05-13T22:26:04Z")

</div>

Could it be that you have a Smart Rule moving, say, newly-indexed files to another location; and/or that in fact you or something IS actually deleting the PDFs in question in the Finder thus causing _DT_ to update what it thinks is really in the location it’s (not?) indexing?

---

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 13, 2021, 10:29pm UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/3 "2021-05-13T22:29:27Z")

</div>

I’m pretty new to DT and haven’t yet gotten as far as creating smart rules. So unless DT magically creates such rules by itself or comes with them, I have no such rules.

My problem at the moment is not so much that files are disappearing (although that is very weird), but that the file that definitely sits in that folder is not being seen by DT.

---

<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: [May 14, 2021, 1:10am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/4 "2021-05-14T01:10:53Z")

</div>

Welcome @toffy  
Where is the indexed folder in the Finder?

---

<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: [May 14, 2021, 6:48am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/5 "2021-05-14T06:48:02Z")

</div>

Are any indexed items still in DEVONthink’s trash?

---

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 14, 2021, 8:14am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/6 "2021-05-14T08:14:19Z")

</div>

> [@BLUEFROG](#):
>
> Where is the indexed folder in the Finder?

the path is `/Users/username/Documents/Box Sync/Literature`

> [@cgrunenberg](#):
>
> Are any indexed items still in DEVONthink’s trash?

Yes, there are many items in the DT trash. Are you suggesting that indexing new files doesn’t work unless the trash is empty?

---

<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: [May 14, 2021, 8:15am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/7 "2021-05-14T08:15:09Z")

</div>

New indexed files are not added if the same indexed files exist already in the trash.

---

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 14, 2021, 8:33am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/8 "2021-05-14T08:33:46Z")

</div>

OK, this is weird but good to know. Indeed: emptying the trash resolved the issue.

So, just to better understand what is going on here:

The newly added file was not in the trash, but it was still not indexed. So I suppose it is not just trashed files that are not indexed but also trashed folders?

Regarding the number of items in the group going getting less (i.e. files disappearing from the index): I can understand how triggering _Update indexed items_ would correct the number of indexed items downwards if DT finds some of the currently indexed items in the trash and therefore removes them from the index.

However, I don’t see how that could happen several times with none of the files changing whatsoever.

Also, I believe that most, if not all the files in the folder were in the trash (When I tested DT some weeks ago, I added the Literature folder some weeks ago and then trashed it for some reason and added it again) so, given the above, I don’t understand how a) I could have succeeded in adding the trashed folder back to the index, b) why only a few files would have been removed now when I triggered _Update indexed items_.

---

<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: [May 14, 2021, 8:41am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/9 "2021-05-14T08:41:21Z")

</div>

> [@toffy](#):
>
> The newly added file was not in the trash, but it was still not indexed. So I suppose it is not just trashed files that are not indexed but also trashed folders?

Only items that exist already in the database (including the trash) are skipped.

> [@](#):
>
> a) I could have succeeded in adding the trashed folder back to the index

You can always manually index files/folders but updating of indexed items skips already existing items.

> [@](#):
>
> b) why only a few files would have been removed now when I triggered _Update indexed items_.

Without a copy of your database and the necessary files this is hard to tell unfortunately.

---

<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: [May 14, 2021, 8:41am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/10 "2021-05-14T08:41:39Z")

</div>

If you already haven’t, I strongly suggest you read the **Help \> Documentation \> In & Out \> Importing & Indexing** section.

---

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 14, 2021, 9:01am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/11 "2021-05-14T09:01:34Z")

</div>

> [@cgrunenberg](#):
>
> Only items that exist already in the database (including the trash) are skipped.

In that case I have no idea how emptying the trash could solve my issue because I see no way how the file in question could already have been in the database. I downloaded it just before I tried annotating it in DT.

Is there any other way how the trash can affect “Update indexed items”?

> [@cgrunenberg](#):
>
> You can always manually index files/folders but updating of indexed items skips already existing items.

Ah, OK, so trashed items can be re-added but not re-indexed.

> [@BLUEFROG](#):
>
> Help \> Documentation

Yes, I saw you posting this in pretty much every topic about indexing issues. This is how I found out about “Update indexed items”. It didn’t occur to me previously that I would have to update already indexed items in order to add a new (i.e. not-yet-indexed item). I also saw that deleted items will be removed from the index but since I knew I definitely hadn’t deleted the file in question, I did not consider it relevant. I guess the crux is that by “items” the documentation doesn’t just mean files, but also folders, which was not intuitive for me.

I’ll take the opportunity to point out that the path

> [@BLUEFROG](#):
>
> **Help \> Documentation**

doesn’t exist:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/3/7/378df46456be30ff2eb6d93fbd5bbbc76cb4235b.jpeg)

---

<div class="post-metadata">

### Author: ![rmschne](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/8baadc/32.png) [@rmschne](https://discourse.devontechnologies.com/u/rmschne)
#### Post date: [May 14, 2021, 9:13am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/12 "2021-05-14T09:13:51Z")

</div>

Re “doesn’t exist”. Apparently true, but as a reader and thinker you could have perhaps noticed “DEVONthink 3 Help” and you can find the DEVONthink Handbook available at the DEVON Technologies web site. Perhaps download it and put into your DEVONthink database. Mine’s marked as a “favourite” for easy access to the reference.

---

<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: [May 14, 2021, 9:30am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/13 "2021-05-14T09:30:15Z")

</div>

> [@toffy](#):
>
> Is there any other way how the trash can affect “Update indexed items”?

Only the way I explained it in the earlier post. If you’re still able to reproduce this, then screenshots of the indexed items, the trash and the folder in the Finder too might be useful.

---

<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: [May 14, 2021, 9:35am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/14 "2021-05-14T09:35:33Z")

</div>

> [@toffy](#):
>
> I guess the crux is that by “items” the documentation doesn’t just mean files, but also folders

This is discussed in the **Getting Started \> DEVONthink Simplified** section.

---

<div class="post-metadata">

### Author: ![toffy](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/toffy/32/27271_2.png) [@toffy](https://discourse.devontechnologies.com/u/toffy)
#### Post date: [May 14, 2021, 10:21am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/15 "2021-05-14T10:21:16Z")

</div>

> [@BLUEFROG](#):
>
> > [@toffy](#):
> >
> > I guess the crux is that by “items” the documentation doesn’t just mean files, but also folders
> 
> This is discussed in the **Getting Started \> DEVONthink Simplified** section.

OK, so there are two types of items: groups (corresponding to folders) and documents (corresponding to files).

> [@cgrunenberg](#):
>
> > [@toffy](#):
> >
> > Is there any other way how the trash can affect “Update indexed items”?
> 
> Only the way I explained it in the earlier post. If you’re still able to reproduce this, then screenshots of the indexed items, the trash and the folder in the Finder too might be useful.

Based on the fact that groups/folders are items, I guess it is clear that the reason why the new file was not indexed was because the folder containing it was in the trash. The incoherence that remains, however, is that (most of) the other files in the same folder (hundreds of them) remained indexed.

I wouldn’t know how to try and reproduce this without potentially messing upp my database, so I guess we need top wait if anything like it ever occurs again.

One thing I might mention is that I have not yet created any specific database, i.e. all my items are in the Inbox. Might that play a role?

---

<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: [May 14, 2021, 10:24am UTC](https://discourse.devontechnologies.com/t/update-indexed-items-does-nothing/64468/16 "2021-05-14T10:24:56Z")

</div>

> [@toffy](#):
>
> Might that play a role?

No, the global inbox is just another database.
