Dataview Query for Pandoc Citekey

I’m trying to find references in my vault that are pandoc cited using the citekey, I was trying to create a dataview query to find them in the reference note of the citation, excluding the reference note. I have an example of my dataview query below, but it gives no results. I have tried both with the citekey itself and with the “Tran et al. (2021)” format that pandoc cites it as in the text with no success.

Search Results for @tranImpactDonorSequence2021

table file.link as "File"
from ""
where contains(text, "@tranImpactDonorSequence2021") and file.path != this.file.path
flatten text
sort file.name asc

You can’t use pure Dataview queries to search for text content (outside of text in lists and tasks). To do that you either need to use dataviewjs and read file contents, use embedded search queries, or other plugins capable of searching the actual file contents.

Dataview is made for handling metadata in various forms, like file information, links, tags, fields/properties, and so on. Currently there is little support for content searches/queries (outside of the text of a task or list item).

1 Like

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