I’m using data blocks (Objects) a lot and for creating them I added some slash templates.
Example Object:
```#person
name: Jack
age: 39
```
Now I realized, that if I query my “#persons”, also my template block shows up in the results.
However, I assumed, that objects in “meta” or template pages are not indexed for queries?
Is this a bug or is it intended?
Of course I could exclude these from my queries, but as I can’t think of any case where I want data-templates queried, I would prefer that as a default to ignore these..
What do others think?
BTW:
The same behaviour with tags in templates…
To sum up:
I suggest to ignore ALL the contents (body) of template pages completely while indexing.
There’s no distinction between meta and non-meta pages, and we cannot do a “ignore all meta pages” thing either, because actually a lot of functionality is implemented specifically by meta pages: specifically all space lua blocks, which are also indexed (otherwise none of that code would run).
In theory we can exclude specific types of things, but then we’d need a clear-cut an obvious rule about what will be indexed and what not.
I agree that content of templates should not be indexed. Perhaps we could provide some way for users to select and/or exclude what is indexed? What about this: you would create LIQ in some special code block or elsewhere (config) but instead of the normal select there will be index keyword. The LIQ will serve as “virtual” filter for what’s going to be indexed… Or, it will be 100% normal LIQ and will be in special space-index code block. Or something like that, unsure… It’s just an idea atm.