What I’m trying to do
I’m using Obsidian to capture meeting notes etc. I’ve created a frontmatter header that allows me to populate things like who I am meeting with, and various topic related items - I’m using YAML keys as much as possible to capture the primary purpose of the meeting - such who the company is that I meeting with e.g.
---
Date: 2023-03-17
Time: 14:00
Company: companyA,
Who:
- Paul
- John
- Ringo
- George
Guest:
- {Name: "Paul", Instrument: "Bass", Band: "Beatles"}
- {Name: "John", Instrument: "Piano", Band: "Beatles"}
---
When the meeting touches on adjacent topics, like other companies, I capture them in the body of the notes as inline keys for example [Company:: companyB].
When I create tasks, I also capture, as inline keys company names - as relevant.
My plan was to use MOC/Index pages to automatically group my meeting notes so I can give up on folders as they don’t work. Nearly everything I have tried has worked and it’s been a revelation, but I struggling in some situations with WHERE data command.
Things I have tried
When I create a dataview query with a WHERE filter of Company = “companyA”, if:
- the page has one instance of the key in the frontmatter - the page is captured in the report
- the page has one or more instances of the key inline with same value for the key - the page is not captured
- the page has multiple instances of the key with different values for the key - the page is not captured
- the page has one instance of the key in the frontmatter AND one or more inline - the page is not captured
- the page has one instance of the key in the frontmatter AND inline in a task - the page is captured
- the page has multiple identical instances of the key in the frontmatter - the page is captured (I tested this for completeness - it’s not actually useful for me)
For the Who or Guest objects, the page is not captured for a where like
WHERE Who = “Paul”
WHERE Guest.Name = “Paul”
What I was expecting to happen is that WHERE would match any page that has a hit, irrespective of whether there are other misses on the same page.
For example, I was hoping to capture every meeting where I met or discussed a given company - and similarly, meetings where a specific person was present.
It’s quite likely I am doing something wrong: syntax, expectations, the wrong key/tag approach completely etc.
Appreciate any pointers - thanks
Alan