trashhalo / logseq-graph-analysis

learn more about the relationships between between your notes using network analysis algorithms
GNU General Public License v3.0
140 stars 13 forks source link

Help with queries #78

Open pauldabl opened 2 months ago

pauldabl commented 2 months ago

Hi there,

I need a little help with queries in the logseq-graph-analysis plugin. I can’t figure out how to make them work (in searches or filters).

The documentation says to use q: {your query}. I tried different versions but no luck so far (it doesn’t seem to affect the graph in any way).

The query {{query (page-property :type "Zettelkasten")}} works in a block but q: (page-property :type "Zettelkasten") doesn’t work in logseq-graph-analysis.

What am I missing ? Is it a bug ?

Many thanks!

cannibalox commented 2 months ago

maybe a bug ? for me q: (property type "Zettelkasten") works but q: (page-property :type "Zettelkasten") never did...(same for page-tags, while tags is working)

pauldabl commented 2 months ago

Glad to hear I'm not the only one having issues with queries. I was beginning to feel stupid!

That's weird, I just tested your option and unfortunately it doesn't work for me. In fact I have been playing with other simple queries and nothing works. Textual search works though.

cannibalox commented 2 months ago

sorry I copy-pasted without paying enough attention, can you try : q: (property type Zettelkasten) ? (without quotes) it should return results with type:: Zettelkasten

pauldabl commented 2 months ago

It does nothing. I tried to reinstall the plugin as it was unstable and it doesn't find any result to the query without quotes, nor to the one with quotes. Thanks for trying to help me 😉

mrparalon commented 1 month ago

It is looking like a bug, queries with a dash in name is not working