Dataview plugin - can we query an alias in the frontmatter?

I have some pages that have an alias in the frontmatter, made up of the file name + the word “Index”. Eg, Amsterdam, alias Amsterdam Index. I’m trying to get a list of all files that have an alias that includes the word “Index”. I tried getting it via, thinking that maybe alias would count as a, but it doesn’t.

list from ""
where contains(, "Index")

Does anyone know how I can do this?
I should clarify that my search works, but it returns files whose name includes “Index”, but I want to seach within the alias field only.

Does this work:

from ""
where contains(aliases, "Index")

User error, of course. Aliases were not put in correctly in the pages. Works like a charm now.

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