{"id":1780,"date":"2026-03-10T14:46:21","date_gmt":"2026-03-10T13:46:21","guid":{"rendered":"https:\/\/cyberelk.net\/tim\/?p=1780"},"modified":"2026-03-14T13:32:32","modified_gmt":"2026-03-14T12:32:32","slug":"searching-logseq-by-concept-not-keystrokes","status":"publish","type":"post","link":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/","title":{"rendered":"Searching Logseq by Concept, Not Keystrokes"},"content":{"rendered":"\n<p><a href=\"https:\/\/logseq.com\/\" type=\"link\" id=\"https:\/\/logseq.com\/\">Logseq<\/a> is great for dumping daily notes, but finding them again later can be a pain. If you&#8217;re looking for notes on a &#8220;connection timeout&#8221; but originally wrote &#8220;increasing the socket keepalive&#8221;, a standard keyword search will give you nothing. You end up having to guess the exact phrasing your past self used.<\/p>\n\n\n\n<p>I wanted a way to search my graph by concept rather than exact text matches. That&#8217;s why I put together the <strong><a href=\"https:\/\/cyberelk.net\/tim\/software\/logseq-plugin-semantic-search\/\" type=\"page\" id=\"1775\">Logseq Semantic Search<\/a><\/strong> plugin.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The upcoming database version of Logseq actually has semantic search built-in. But since I&#8217;m still using the standard Markdown version for my day-to-day workflow, I wanted to get that capability right now.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Indexing the hierarchy<\/h3>\n\n\n\n<p>The plugin uses text embeddings to find conceptually similar blocks. But just embedding individual bullet points doesn&#8217;t work well for outliners. A block that just says <em>&#8220;needs refactoring&#8221;<\/em> is useless on its own.<\/p>\n\n\n\n<p>If you&#8217;ve seen my <a href=\"https:\/\/cyberelk.net\/tim\/2026\/03\/04\/logsqueak-rescuing-insights-from-the-logseq-journal\/\">Logsqueak<\/a> project, you&#8217;ll recognise the indexing approach here. Every block is indexed along with its complete structural lineage\u2014the page name, properties, and the full chain of parent blocks above it.<\/p>\n\n\n\n<p>Because it captures this nested context, the search index knows that a vague bullet point nested under <code>billing-service<\/code> \u2192 <code>Database Connection Pool<\/code> is actually about your Postgres setup. Searching for &#8220;optimizing billing db&#8221; will pull that specific child block right to the top of the results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Running it locally<\/h3>\n\n\n\n<p>Since a Logseq graph is essentially a private brain dump, I wanted this to run entirely locally. By default, the plugin connects to <a href=\"https:\/\/ollama.com\/\">Ollama<\/a> using the lightweight <code>nomic-embed-text<\/code> model. It&#8217;s smart enough to only re-embed blocks that have changed, so it&#8217;s relatively fast even without a GPU. (If you prefer, you can also point it at any OpenAI-compatible endpoint in the settings).<\/p>\n\n\n\n<p>I run Fedora Workstation and prefer to keep my host system clean, so I run Ollama via Podman. It&#8217;s incredibly straightforward to set up:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code># Start the Ollama container, exposing the default port\n# and persisting data\npodman run -d \\\n  --name ollama \\\n  -p 11434:11434 \\\n  -e \"OLLAMA_ORIGINS=*\" \\\n  -v ollama:\/root\/.ollama \\\n  docker.io\/ollama\/ollama\n\n# Pull the lightweight embedding model\npodman exec ollama ollama pull nomic-embed-text<\/code><\/pre>\n\n\n\n<p>Because we mapped port <code>11434<\/code>, the Semantic Search plugin can talk to the container seamlessly at <code>http:\/\/localhost:11434<\/code> right out of the box. No dependency issues, just a private embedding server ready to run in the background.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Usage<\/h3>\n\n\n\n<p>You can grab the plugin directly from the Logseq Marketplace. Once it&#8217;s installed, hit <code>Alt+K<\/code> (or click the toolbar icon) to open the search modal. Try typing a natural language query\u2014like <em>&#8220;notes about debugging pipeline failures&#8221;<\/em>\u2014and it will surface the relevant blocks even if you didn&#8217;t use the word &#8220;debugging.&#8221;<\/p>\n\n\n\n<p>The source code is up on <a href=\"https:\/\/github.com\/twaugh\/logseq-plugin-semantic-search\">GitHub<\/a> if you want to poke around or contribute.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logseq is great for dumping daily notes, but finding them again later can be a pain. If you&#8217;re looking for notes on a &#8220;connection timeout&#8221; but originally wrote &#8220;increasing the socket keepalive&#8221;, a standard keyword search will give you nothing. You end up having to guess the exact phrasing your past self used. I wanted [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[27,105],"class_list":["post-1780","post","type-post","status-publish","format-standard","hentry","category-software","tag-fedora","tag-logseq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Searching Logseq by Concept, Not Keystrokes - PRINT HEAD<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Searching Logseq by Concept, Not Keystrokes - PRINT HEAD\" \/>\n<meta property=\"og:description\" content=\"Logseq is great for dumping daily notes, but finding them again later can be a pain. If you&#8217;re looking for notes on a &#8220;connection timeout&#8221; but originally wrote &#8220;increasing the socket keepalive&#8221;, a standard keyword search will give you nothing. You end up having to guess the exact phrasing your past self used. I wanted [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/\" \/>\n<meta property=\"og:site_name\" content=\"PRINT HEAD\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-10T13:46:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-14T12:32:32+00:00\" \/>\n<meta name=\"author\" content=\"Tim Waugh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tim Waugh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/\"},\"author\":{\"name\":\"Tim Waugh\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"headline\":\"Searching Logseq by Concept, Not Keystrokes\",\"datePublished\":\"2026-03-10T13:46:21+00:00\",\"dateModified\":\"2026-03-14T12:32:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/\"},\"wordCount\":417,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"keywords\":[\"fedora\",\"logseq\"],\"articleSection\":[\"Software\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/\",\"name\":\"Searching Logseq by Concept, Not Keystrokes - PRINT HEAD\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\"},\"datePublished\":\"2026-03-10T13:46:21+00:00\",\"dateModified\":\"2026-03-14T12:32:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2026\\\/03\\\/10\\\/searching-logseq-by-concept-not-keystrokes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Searching Logseq by Concept, Not Keystrokes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\",\"name\":\"PRINT HEAD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\",\"name\":\"Tim Waugh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"contentUrl\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"width\":731,\"height\":140,\"caption\":\"Tim Waugh\"},\"logo\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\"},\"sameAs\":[\"http:\\\/\\\/cyberelk.net\\\/tim\"],\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/author\\\/twaugh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Searching Logseq by Concept, Not Keystrokes - PRINT HEAD","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/","og_locale":"en_GB","og_type":"article","og_title":"Searching Logseq by Concept, Not Keystrokes - PRINT HEAD","og_description":"Logseq is great for dumping daily notes, but finding them again later can be a pain. If you&#8217;re looking for notes on a &#8220;connection timeout&#8221; but originally wrote &#8220;increasing the socket keepalive&#8221;, a standard keyword search will give you nothing. You end up having to guess the exact phrasing your past self used. I wanted [&hellip;]","og_url":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/","og_site_name":"PRINT HEAD","article_published_time":"2026-03-10T13:46:21+00:00","article_modified_time":"2026-03-14T12:32:32+00:00","author":"Tim Waugh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tim Waugh","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/#article","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/"},"author":{"name":"Tim Waugh","@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"headline":"Searching Logseq by Concept, Not Keystrokes","datePublished":"2026-03-10T13:46:21+00:00","dateModified":"2026-03-14T12:32:32+00:00","mainEntityOfPage":{"@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/"},"wordCount":417,"commentCount":0,"publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"keywords":["fedora","logseq"],"articleSection":["Software"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/","url":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/","name":"Searching Logseq by Concept, Not Keystrokes - PRINT HEAD","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/#website"},"datePublished":"2026-03-10T13:46:21+00:00","dateModified":"2026-03-14T12:32:32+00:00","breadcrumb":{"@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cyberelk.net\/tim\/2026\/03\/10\/searching-logseq-by-concept-not-keystrokes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cyberelk.net\/tim\/"},{"@type":"ListItem","position":2,"name":"Searching Logseq by Concept, Not Keystrokes"}]},{"@type":"WebSite","@id":"https:\/\/cyberelk.net\/tim\/#website","url":"https:\/\/cyberelk.net\/tim\/","name":"PRINT HEAD","description":"","publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cyberelk.net\/tim\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6","name":"Tim Waugh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","url":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","contentUrl":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","width":731,"height":140,"caption":"Tim Waugh"},"logo":{"@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png"},"sameAs":["http:\/\/cyberelk.net\/tim"],"url":"https:\/\/cyberelk.net\/tim\/author\/twaugh\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pnnS2-sI","_links":{"self":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/comments?post=1780"}],"version-history":[{"count":8,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1780\/revisions"}],"predecessor-version":[{"id":1799,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/1780\/revisions\/1799"}],"wp:attachment":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/media?parent=1780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/categories?post=1780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/tags?post=1780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}