Quering properties with nodes and plain text as values

I am trying to make sense on how to use Query in the new database version for properties.

I have a property named keywords that is set as: Property type: Text and allow Multiple values.

In the documentation for Property Types in the Logseq database version it says:

Text: This is the recommended default as it allows for any text and behaves like a block. This means that node references work here and children blocks can be created under the block.

So according to the documentation both Node references and Plain text are accepted.

In the example of the provided screenshots, when I try to Query for values in the keywords property that are Plain text (like the word Waterfall in the example screenshot) it works.

But when I try to Query for values that are Page reference (a Node/Tag using the square brackets [[]]), for example [[Canada]], nothing shows.

Even though Logseq provides them in the list of choices, like [[Canada]] [[Mountain]] and [[Forest]] in the screenshot. But it doesn’t show any results.

The Query for plain text Waterfall looks like this in Logseq: (property :user.property/keywords-SmmwpeIY "Waterfall")

And for Page Reference [[Canada]] looks like this: (property :user.property/keywords-SmmwpeIY [[Canada]])

Am I doing something wrong or is this a bug?

1 Like