# DT3 searching markdown footnotes fails

**URL:** <https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059>\
**Category:** DEVONthink\
**Created:** [March 16, 2021, 11:10pm UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059 "2021-03-16T23:10:47Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [March 18, 2021, 8:58am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/21 "2021-03-18T08:58:19Z")

</div>

> [@brookter](#):
>
> In the meantime, it would be helpful to have a full article on the implications of the changes, explaining exactly which elements of markdown files are no longer searchable

Basically URLs of links/images (including the ones in the footnotes) and HTML tags. This effects all index based operations (search, see also, classify and concordance) and is actually intended to improve especially the results of these features and make them more consistent to RTF/HTML.

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [March 18, 2021, 9:23am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/22 "2021-03-18T09:23:41Z")

</div>

> [@cgrunenberg](#):
>
> Basically URLs of links/images

I seem to be able to search successfully for x-devonthink-item URLs, though. Regardless of the fact if they’re visible in the rendered file or not.

---

<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:** [March 18, 2021, 9:25am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/23 "2021-03-18T09:25:08Z")

</div>

> [@chrillek](#):
>
> I seem to be able to search successfully for x-devonthink-item URLs, though. Regardless of the fact if they’re visible in the rendered file or not.

This might be possible if the files were indexed by older versions or if the link is part of the Markdown’s text.

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [March 18, 2021, 9:32am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/24 "2021-03-18T09:32:53Z")

</div>

It _seems_ that it is also possible in other cases. In my Markdown file, I have this line:

```auto
[This is a DT-Link](x-devonthink-item://1E23F171-736F-4D63-9F91-376EA58CE131)

```

If I search for “x-devonthink-item”, I get _this_ same file as one of the hits:

 ![Bildschirmfoto 2021-03-18 um 10.30.22](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/b/1/b15cb474bf0338bdd1edb9f87e5f8c7b17d38f68.jpeg)

As you can see, the creation date is quite recent, and the last changed date even more recent (that’s when I added the DT link to the file).

---

<div class="post-metadata">

**Author:** ![brookter](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/brookter/32/4458_2.png) [@brookter](https://discourse.devontechnologies.com/u/brookter)\
**Post date:** [March 18, 2021, 9:41am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/25 "2021-03-18T09:41:43Z")

</div>

Thanks.

But that doesn’t include Metadata, which are neither URLs nor HTML.

Is internal metadata searched for or not? There’s a suggestion up thread that it isn’t, but I seem to be able to do it fine. This is a search for journal entries on Fridays…

 ![Screenshot 2021-03-18 at 09.43.24](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/c/0/c026d130353c03282bd599d2ac1dcc3c2968e98f.jpeg)

**Is that because I haven’t (knowingly) rebuilt this database? Or is metadata in fact still searchable?**

Secondly, as far as I can see URLs _are_ picked up — a search for ‘https’ or ‘x-devonthink-item’ seems to work fine. (It’s the ‘seems’ which is worrying… are some being missed?)

Again, is this by design (you _do_ search certain parts of links), or will this (helpful) behaviour go away if I rebuild the database?

So, I think we need a far more detailed explanation for the changes than a sentence or two in this forum.

At the moment, this is causing some people to query whether the searches they have made are accurate or not — rightly or wrongly. DT3 is built on the idea of robust searching — a change in that process needs to be fully and loudly documented, even if (_especially_ if) the concerns are largely illusory. I’m sure you don’t take these decisions lightly, but the consequences and implications need to be explained properly.

Finally, please could we have a preference to turn back to the old behaviour soon?

Many thanks.

---

<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:** [March 18, 2021, 9:45am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/26 "2021-03-18T09:45:51Z")

</div>

> [@brookter](#):
>
> Is internal metadata searched for or not?

It should be. Otherwise try a rebuild or, if that doesn’t help, please post the source of the document.

---

<div class="post-metadata">

**Author:** ![brookter](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/brookter/32/4458_2.png) [@brookter](https://discourse.devontechnologies.com/u/brookter)\
**Post date:** [March 18, 2021, 9:55am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/27 "2021-03-18T09:55:47Z")

</div>

Thanks, Christian.

So, as far as you’re concerned, Metadata _is_ searchable and will remain so?

That’s a relief, but it only underlines my point — someone coming across this thread will be 26 posts in before they get that confirmed.

BTW: it seems to go against the idea in the Release notes and earlier in the thread that only rendered text is searched — or it uses a definition of rendered which some will not have expected (does ‘rendered’ mean shown on the screen or not).

It seems to me that at the least help files need an explicit note in both the markdown and Search sections listing the new restrictions (not just saying ‘rendered’ as that’s open to interpretation). Apologies if it’s there, but I couldn’t find anything.

An article in the regular feed would also be helpful — if you’ve been using markdown search successfully for years, it’s unlikely you’ll check the help.

Thanks!

---

<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:** [March 18, 2021, 10:00am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/28 "2021-03-18T10:00:24Z")

</div>

> [@brookter](#):
>
> So, as far as you’re concerned, Metadata _is_ searchable and will remain so?

At least there are no plans to change this right now.

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [March 18, 2021, 10:05am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/29 "2021-03-18T10:05:45Z")

</div>

> [@cgrunenberg](#):
>
> > [@brookter](#):
> >
> > So, as far as you’re concerned, Metadata _is_ searchable and will remain so?
> 
> At least there are no plans to change this right now.

Are you saying metadata should still be searchable?

I **can’t** search metadata since DEVONthink 3.5.1.

```auto
metadata: findMe

### Test

Text

```

 ![1](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/b/d/bdc7c66822ffa1e18cb0feff273db33c75426ab4.png)

---

<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:** [March 18, 2021, 10:11am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/30 "2021-03-18T10:11:00Z")

</div>

I’m sorry, I shouldn’t handle too many things at the same time 🙂 But metadata is indeed currently not indexed like links.

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [March 18, 2021, 10:12am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/31 "2021-03-18T10:12:12Z")

</div>

No problem, you can be sure that I’ll point out that it is not searchable 😉

Please make it searchable again, I really need this.

---

<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:** [March 18, 2021, 10:22am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/32 "2021-03-18T10:22:39Z")

</div>

> [@pete31](#):
>
> Please make it searchable again, I really need this.

The next release will include a hidden preference.

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [March 18, 2021, 10:26am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/33 "2021-03-18T10:26:38Z")

</div>

# THANK YOU CHRISTIAN!

😄

---

<div class="post-metadata">

**Author:** ![brookter](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/brookter/32/4458_2.png) [@brookter](https://discourse.devontechnologies.com/u/brookter)\
**Post date:** [March 18, 2021, 10:44am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/34 "2021-03-18T10:44:18Z")

</div>

Hang on, now I’m really confused… The position seems to be changing and I can’t keep up.

Please can we have a definitive statement:

1. **Can we currently search markdown files for metadata:** i.e. data at the beginning of a file with the form `Keyword: Data`. Yes or no?

2. **Are words within markdown links in the form `[title](url)` searchable or not?** E.g. can we search for all items which contain say ‘https:’ or ‘x-devonthink-item’ within the `(url)` part of the link? Yes or not?

3. **If the answer to either is No, then why can I find examples of both where the search definitely works?** Is it because my databases haven’t been rebuilt yet (I assume)? Will I lose this behaviour if I do rebuild them?

The problem is, forum threads really aren’t a good way of getting accurate information out about this sort of issue: that’s why it needs to be addressed in one place as a specific, definitive response to which people can be pointed.

Thanks again.

---

<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:** [March 18, 2021, 10:53am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/35 "2021-03-18T10:53:50Z")

</div>

> [@brookter](#):
>
> - **Can we currently search markdown files for metadata:** i.e. data at the beginning of a file with the form `Keyword: Data`.

No.

> [@brookter](#):
>
> \* \*\*Are words within markdown links in the form `[title](url)` searchable or not?

Only the title is indexed.

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [March 18, 2021, 11:03am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/36 "2021-03-18T11:03:03Z")

</div>

> [@cgrunenberg](#):
>
> Only the title is indexed.

As I said before: At least _here_ x-devonthink-item URLs\_are\_ found. So they’re presumably indexed, too.

---

<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:** [March 18, 2021, 11:09am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/38 "2021-03-18T11:09:06Z")

</div>

It’s possible that this was indexed by older versions. How does the source look like?

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [March 18, 2021, 11:25am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/39 "2021-03-18T11:25:00Z")

</div>

Cf [DT3 searching markdown footnotes fails - #24 by chrillek](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/24)

The MD source looks like this:

```auto
<style>
.class_open::before {
  content: '\25A1 ';
}
.class_closed::before {
  content: '\2713 ';
  color: green;
}
h2 {
color: #f00 !important;
}
</style>
## Headline

Normaler Text

> Blockquote eingerückt? Auch noch in der zweiten Zeile, die dafür allerdings lang genug sein muss, damit der Text umbrochen wird.

Normaler Text

[] task 1
[x] task 2

[This is a DT-Link](x-devonthink-item://1E23F171-736F-4D63-9F91-376EA58CE131)

```

And just for the record: _This_ file is also found if I search for class\_open, which is a part of the `style` element and as such certainly never “rendered” (in the sense of being even remotely visible). Not that I mind it being found, but this seems to further muddy the decision what is (not) found.

---

<div class="post-metadata">

**Author:** ![brookter](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/brookter/32/4458_2.png) [@brookter](https://discourse.devontechnologies.com/u/brookter)\
**Post date:** [March 18, 2021, 11:34am UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/40 "2021-03-18T11:34:21Z")

</div>

Thanks.

But I _can_ search metadata, even with a file **created today with the current version**.

 ![Screenshot 2021-03-18 at 11.18.30](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/f/d/fdf032a3dbef7636c4d8cfb0c8a504800b04cc2b.jpeg)

Note how the search term is highlighted in both the text and the Find inspector.

But if I search for `Title: `, either on its own, or as `Title: Markdown search test`, **the document is still found but the search terms are not highlighted**.

 ![Screenshot 2021-03-18 at 11.31.18](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/5/a/5a8d5821fe8f3637a037196bfe91eebd37ba26ea.jpeg)

I feel a bit confused, TBH…

---

<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:** [March 18, 2021, 12:38pm UTC](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059/41 "2021-03-18T12:38:57Z")

</div>

A search for `text:x-devonthink-item` doesn’t find it as expected as the URL is not part of the indexed text. However, item links are internally indexed too (also in case of PDF, text, RTF or web documents as this is e.g. necessary for the Document \> Links inspector) therefore just `x-devonthink-item` finds it.

However, in case of e.g. `[Apple](https://www.apple.com)` the search won’t find the URL of the link.

[Previous page](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059.md?page=1)

[Next page](https://discourse.devontechnologies.com/t/dt3-searching-markdown-footnotes-fails/63059.md?page=3)
