Skip to content

Search

Paperless documents show in the global search of Nextcloud for every user who can open their files: under Paperless documents, after the files, each with its title, its date and the words around the term. Selecting one opens its file in Nextcloud. When Paperless Sync lets you see only the documents with some tags, as Tags that a user may see explains, you find only those that carry one of them, in the search, the smart picker, on the dashboard and in the notifications.

Paperless results in Nextcloud's global search Paperless results in Nextcloud's global search
Paperless documents in the search, after the files

Usage

Open Nextcloud's global search, enable Search connected services, and select Paperless documents. Nextcloud 32 and later turn the switch off again whenever a page loads, so that no term goes to another server without your choice. To skip it, select Always search my Paperless documents in your personal settings, as below; an administrator can include Paperless in the search of every user instead, with trusted-service mode.

Documents without a synchronized [P<ID>] file of the archive account are intentionally omitted. This also keeps Inbox-only documents out of Nextcloud search when the synchronization process does not export them.

Always search your Paperless documents

Under Personal settings → Paperless, select Always search my Paperless documents, and every search of yours asks Paperless without the switch, from the next page that you open. Your search terms then go to the Paperless server of your Nextcloud with every search, also when you look for a file or a contact; the searches of everybody else stay as they are. Clear the checkbox, and the switch decides again.

The section shows once Paperless is connected with an archive account. Administrators can turn off Let users include Paperless in all their searches in the administration settings: the section then disappears, and the search ignores what users chose until it is on again. While Always include Paperless in global search is on, every search includes Paperless anyway, and the section shows the checkbox ticked and greyed out.

When a search asks Paperless: As a page of Nextcloud loads, its search asks the app whether Paperless is a connected service for the user who signed in. While an administrator includes Paperless in every search of every user, it is not, and every search asks Paperless. Otherwise, while the administrators let users choose, a user who selected Always search my Paperless documents in the personal settings has every search of their own ask Paperless. Everybody else finds Paperless documents only with the switch Search connected services, which Nextcloud turns off again on every page that loads.When a search asks Paperless: As a page of Nextcloud loads, its search asks the app whether Paperless is a connected service for the user who signed in. While an administrator includes Paperless in every search of every user, it is not, and every search asks Paperless. Otherwise, while the administrators let users choose, a user who selected Always search my Paperless documents in the personal settings has every search of their own ask Paperless. Everybody else finds Paperless documents only with the switch Search connected services, which Nextcloud turns off again on every page that loads.

Narrow the results by date

Pick a span in the date filter of Nextcloud's search, such as Last 30 days, This year or a custom range, and the Paperless results show only documents whose date in Paperless lies within it, the date that Paperless shows for the document, not the day it was added or synchronized. The span counts in whole days in your timezone: Last 30 days picked in Berlin on September 30 finds the documents dated September 1 to September 30. Paperless filters the documents itself, so a narrow span still finds the matching documents further down the ranking, and the results stay in Nextcloud's filtered list instead of Partial matches.

The search for invoice with Search connected services switched on and the date filter set to the custom range from 7/1/2026 to 7/31/2026: Paperless documents lists the home insurance renewal of Jul 21, 2026 and the internet invoice of Jul 3, 2026, but not the electricity invoice of August, and Files finds none of the files, which were added later The search for invoice with Search connected services switched on and the date filter set to the custom range from 7/1/2026 to 7/31/2026: Paperless documents lists the home insurance renewal of Jul 21, 2026 and the internet invoice of Jul 3, 2026, but not the electricity invoice of August, and Files finds none of the files, which were added later
The search narrowed to July 2026 with a custom range

What a result shows

Each result shows the preview of its file, as the results of Files do, or else the icon of the type of the file. Below its title, a line names the date of the document in your language, such as Aug 12, 2026 in English and 12.08.2026 in German, its correspondent, its type and up to two of its tags, such as Bill · unpaid · tax 2026, and then the words around the term that Paperless found. Two invoices of the same correspondent thus tell at a glance which one is paid. When only a note of the document matched, as for notes:transfer, the line shows Note: and the words of the note.

What a result shows: The search of Paperless-ngx sends the title of document 412, its date 2026-08-12, the IDs of its correspondent and its type, 3 and 1, of its tags, 1, 2 and 3, and the words around the term. Paperless names correspondent 3 Northstar Energy, type 1 Bill and tags 2 and 3 unpaid and tax 2026; tag 1 is the inbox, which no result shows. It takes one request per kind for all documents of the page, which the app keeps for ten minutes, and a result shows up to two tags, then +1 for each more. The file of the document in Nextcloud gives the preview, when Nextcloud draws previews of its type, or else the icon of the type, as the search of files shows them. The result shows that picture, the title Electricity invoice - August 2026, and below it Aug 12, 2026 · Northstar Energy · Bill · unpaid · tax 2026 — Invoice E-2026-0812. Total due 84.30 EUR by September 2, with the date in the language of the user, such as 12.08.2026 in German.What a result shows: The search of Paperless-ngx sends the title of document 412, its date 2026-08-12, the IDs of its correspondent and its type, 3 and 1, of its tags, 1, 2 and 3, and the words around the term. Paperless names correspondent 3 Northstar Energy, type 1 Bill and tags 2 and 3 unpaid and tax 2026; tag 1 is the inbox, which no result shows. It takes one request per kind for all documents of the page, which the app keeps for ten minutes, and a result shows up to two tags, then +1 for each more. The file of the document in Nextcloud gives the preview, when Nextcloud draws previews of its type, or else the icon of the type, as the search of files shows them. The result shows that picture, the title Electricity invoice - August 2026, and below it Aug 12, 2026 · Northstar Energy · Bill · unpaid · tax 2026 — Invoice E-2026-0812. Total due 84.30 EUR by September 2, with the date in the language of the user, such as 12.08.2026 in German.

  • Preview. Nextcloud draws previews of images and office documents, but of PDF files only once an administrator turns them on, as its documentation of previews describes. Until then a result shows the icon of PDF files, as the results of Files do.
  • Correspondent, type and tags. Paperless sends them as numbers. The app asks Paperless for their names with one request for all correspondents, one for all types and one for all tags of a page, and keeps the names for ten minutes, so a name changed in Paperless shows in the results within ten minutes. When the account of the API token may not view correspondents, types or tags, or those that another user owns, or Paperless doesn't answer in time, the results show without them, and the search works as before; the settings, occ paperless_unified_search:check and the overview warn about such an account, about those that another user owns when the newest documents name one. Once the account may view correspondents, types or tags, their names show as soon as the settings are saved again, with the same token or another, and otherwise within ten minutes.
  • Up to two tags. A result shows the first two tags of its document in the order that Paperless sends them, then how many more it has, such as unpaid · tax 2026 · +2 for a document with four. It never shows the tag of the inbox, which Paperless gives every new document until someone has looked at it, and which says nothing about the document.
  • Text. The words around the term come as Paperless marks them up, and the result shows them as plain text. Text of a document in angle brackets, such as <GmbH>, shows with a space after <, as < GmbH>, so that no part of a result can ever act as HTML.

In Talk, Text, Deck and Mail

Nextcloud's smart picker finds Paperless documents too, wherever you write: type / in Text or Collectives, or open the smart picker in a conversation of Talk, a card of Deck or a message of Mail. Choose Paperless documents, search, and pick a result: the picker inserts the link to its file. Everyone who can open that file sees its preview; anyone else sees only the link.

The picker searches through the same provider as Nextcloud's search, so it lists the same documents. It asks Paperless once you have chosen Paperless documents and typed a term, without the switch Search connected services: choosing it is the same consent.

The smart picker in a note of Text: under Paperless documents, the search for invoice lists the electricity invoice, the home insurance renewal and the internet invoice The smart picker in a note of Text: under Paperless documents, the search for invoice lists the electricity invoice, the home insurance renewal and the internet invoice
The smart picker in a note of Text
The note of Text after picking the electricity invoice: the inserted link shows the PDF of the invoice The note of Text after picking the electricity invoice: the inserted link shows the PDF of the invoice
The link that it inserts shows the file

On the dashboard

Add New in Paperless to your dashboard with Customize at the end of the dashboard. The widget lists the newest documents that Paperless added and that you can open, newest first, without a search: each with the preview of its file, and below its title the day that Paperless added it in your language, its correspondent, its type and up to two of its tags, as a result of the search shows them, such as Sep 3, 2026 · Example Motors · Receipt · warranty. Selecting one opens its file in Files. Once the list is full, Nextcloud's dashboard shows six documents and Files shared with you below them, which opens all the files that others share with you; with fewer documents it shows them all and no link, and the archive account, which owns the files, gets no such link at all. The apps and the other clients of the dashboard's API get up to seven documents and the link. Nextcloud's dashboard API serves the widget to other clients as well, such as the widgets of the Android app on the home screen of a phone.

The newest documents on the dashboard: The dashboard of jamie asks the widget New in Paperless for its items. The app takes a page of the 25 documents that Paperless-ngx added last from Nextcloud's distributed cache, or else asks Paperless for it, newest first, and keeps it for a minute for every user, since every request carries the token of the settings. Of these, jamie sees the documents whose file jamie can open, found by their markers in one search of the file cache. While fewer than seven are found and Paperless has older documents, the app takes the next page the same way, up to four pages, the 100 newest documents, and then, where Paperless Sync gives each owner an archive, the 25 newest documents of jamie's own user of Paperless. jamie sees at most seven, with the names of their correspondents, types and tags. Each item shows the preview of its file, its title, and the day that Paperless added it, its correspondent, its type and up to two of its tags, such as Sep 3, 2026 · Example Motors · Receipt · warranty, and opens the file in Files.The newest documents on the dashboard: The dashboard of jamie asks the widget New in Paperless for its items. The app takes a page of the 25 documents that Paperless-ngx added last from Nextcloud's distributed cache, or else asks Paperless for it, newest first, and keeps it for a minute for every user, since every request carries the token of the settings. Of these, jamie sees the documents whose file jamie can open, found by their markers in one search of the file cache. While fewer than seven are found and Paperless has older documents, the app takes the next page the same way, up to four pages, the 100 newest documents, and then, where Paperless Sync gives each owner an archive, the 25 newest documents of jamie's own user of Paperless. jamie sees at most seven, with the names of their correspondents, types and tags. Each item shows the preview of its file, its title, and the day that Paperless added it, its correspondent, its type and up to two of its tags, such as Sep 3, 2026 · Example Motors · Receipt · warranty, and opens the file in Files.

  • Who sees what. The same rule as in the search: a document shows to whoever can open its file of the archive account. The widget looks at the 25 documents that Paperless added last, and while fewer of them than it shows have a file that you can open, at the next 25, up to the 100 newest. Where Paperless Sync gives each owner an archive, it then looks at the 25 newest documents that your own user of Paperless owns as well, so that an import of many documents by someone else doesn't empty your widget. When you can open none of them, it says so: then your newest documents are older than the 100 newest of everyone, and the search finds them.
  • How new. The newest documents are the same for every user, since every request to Paperless carries the token of the settings, so the app asks Paperless for them at most once a minute, for all users together, and keeps them in Nextcloud's distributed cache meanwhile. That needs a memory cache, as Nextcloud recommends: without one, every dashboard that shows the widget asks Paperless, and waits for it during an outage. A document that Paperless adds shows within a minute, and a file shared with you at once.
  • When Paperless doesn't answer within five seconds, the widget says Paperless can't be reached right now., and the app asks again a minute later. Such a failure goes into the log of Nextcloud, not into the history of the problems of the search.
  • Only where the search works. The dashboard offers the widget once the settings name a Paperless and an archive account that exists.
The dashboard of Jamie with the widget New in Paperless: the car service, the electricity invoice, the home insurance renewal, the internet invoice and the property tax notice, newest first, each with the icon of its PDF file and a line with the day that Paperless added it, its correspondent, its type and its tags, such as Sep 3, 2026 · Example Motors · Receipt · warranty The dashboard of Jamie with the widget New in Paperless: the car service, the electricity invoice, the home insurance renewal, the internet invoice and the property tax notice, newest first, each with the icon of its PDF file and a line with the day that Paperless added it, its correspondent, its type and its tags, such as Sep 3, 2026 · Example Motors · Receipt · warranty
New in Paperless on the dashboard of Nextcloud

Notifications about new documents

Under Personal settings → Paperless, Notify me about new documents asks Nextcloud to tell you when Paperless adds a document: Every new document that I can open, or only those that your saved searches find, up to 10, one per line, in the syntax of Paperless, such as correspondent:"tax office" or tag:unpaid. Paperless itself notifies only through workflows that its administrator sets up, which know nothing of the users and the permissions of Nextcloud, and the file notifications of Nextcloud don't fire for new files in a folder that is shared with you.

Notifications about new documents: Every five minutes, a background job asks Paperless-ngx once for the documents that it added since the last run, and they wait for their files. While no file has arrived, Paperless gets no further request. Once a file is in the archive account, the job asks Paperless once per distinct saved search which of those documents it finds. Each user who asked for a document and can open its file gets one notification, with a link to each file that it names.Notifications about new documents: Every five minutes, a background job asks Paperless-ngx once for the documents that it added since the last run, and they wait for their files. While no file has arrived, Paperless gets no further request. Once a file is in the archive account, the job asks Paperless once per distinct saved search which of those documents it finds. Each user who asked for a document and can open its file gets one notification, with a link to each file that it names.

  • A search that Paperless can't read isn't saved. Save sends each new search to Paperless once, with a page of one document, and refuses one that Paperless can't read in its advanced syntax, such as the range of dates that isn't complete in created:[2026 to, with the number of its line, which it selects for you to correct: otherwise the search would wait for documents that it never finds, or find others than you meant in the simple mode of Paperless 3, which reads only its words. When Paperless doesn't answer, or answers a search with an error, your searches are saved all the same, and the page says that they could not be checked. A search for the documents similar to one, such as like:412, is saved without asking whether Paperless has that document, which you might not be allowed to open.
  • Who hears what. The same rule as in the search: you hear about a document only when you can open its file of the archive account. Someone who saved the same search and can't open the file hears nothing, and neither does the owner of a disabled account.
  • One notification at a time. A run of the job sends you one notification, whatever the number of its documents: with one document, its title and the first of your saved searches that found it, such as Found by your saved search: tag:unpaid, so that you can tell why it came and which search to correct when one finds too much; with more, how many they are and the titles of the newest three. A document that only Every new document that I can open brought names no search. Each title opens the file, on the web and in the apps for phones.
  • When. A background job runs every five minutes, as Nextcloud's cron starts it. A document counts once its file has reached the archive account, so the notification comes with your synchronization, which may take hours. A document whose file doesn't arrive within two days never counts, such as one that the rules of Paperless Sync leave out.
  • What counts as new. The documents that Paperless takes in from the moment that anybody first asks: a first run only learns how far the IDs go, so nobody hears about the archive of years. Each saved search looks at a document once, as its file arrives, so a tag that someone gives it later brings no notification. Of more than 100 documents between two runs, such as a large import, only the newest count.
  • When Paperless doesn't answer, the job waits ten minutes, then 20, 40 and at most an hour before it asks again, and the documents keep waiting meanwhile, within their two days. Such a failure goes into the log of Nextcloud, not into the history of the problems of the search. Whether Paperless answers, the requests for the new documents and, with Tags that a user may see, for their tags decide, which hold no saved search. A saved search that Paperless refuses or fails to answer, such as one saved before the check above existed or a wildcard that takes too long, finds nothing in that run, and the log names the users whose search it is, without its words, so that an administrator can tell them; everybody else gets their notifications, also when it is the only saved search of your Nextcloud. Should Paperless stop answering in the middle of a run, as it may while it takes in new documents, the run stops asking after three saved searches in a row without an answer, such as a timeout or a failed connection, or a minute after the first saved search without an answer, and waits as above; the documents keep waiting, and the next run asks again. A Paperless that answers every saved search, if slowly, gets them all asked. So a Paperless that hangs gets a few requests, not one for each saved search of every user, each of which would wait ten seconds.
  • Only where administrators allow it. The personal settings offer it while Let users ask for notifications about new documents is on. Notifications need the app Notifications of Nextcloud, which comes with it.

Why the switch is off after a reload

Search connected services decides whether a search leaves Nextcloud. Nextcloud counts every search that sends the term to another server as one of a connected service, Paperless as well, and asks it only while the switch is on. It turns the switch off whenever the page loads anew, so that no term goes to another server without the choice of the user, again and again.

There are two ways around it, and both send the terms to Paperless with every search:

  • For yourself: select Always search my Paperless documents under Personal settings → Paperless, as Always search your Paperless documents above shows. Only your own searches change, from the next page that you open.
  • For every user: an administrator who trusts their Paperless server, as the one that already holds the documents, can select Always include Paperless in global search in the settings. Paperless then belongs to every search of every user, without the switch, which no longer controls it, and the personal settings show the checkbox ticked and greyed out. Every user reloads Nextcloud once after the change.

On a phone

  • In the browser of a phone, the search works as on a computer, and a result opens in Nextcloud's viewer.
  • The Nextcloud apps for iOS and Android show Paperless documents in their search as well. A result opens the file in the viewer of the app, without leaving it: the iOS app gets a link nextcloud://open-file, and the Android app the ID and the path of the file.
Paperless results in the global search of Nextcloud on a phone The electricity invoice opened in Nextcloud's viewer on a phone
On a phone, in the browser

Search like in Paperless

Nextcloud hands the words of a search to Paperless-ngx as they are typed, so its search syntax works in Nextcloud too. Without it, Paperless finds the documents that contain every word, in the text, the title, the correspondent, the type or the tags:

Search for Finds
invoice 2025 Documents with both words, in any order
"home insurance" The exact phrase
insur* Words that begin with insur
invoice NOT draft Invoices without the word draft; the operators are written in capitals
correspondent:acme Documents of the correspondent ACME
type:invoice tag:unpaid Unpaid invoices, by their type and their tag
created:[2024 to 2025] Documents created from 2024 to 2025
added:yesterday Documents that Paperless received yesterday
title:invoice Documents with the word in their title; content: looks in their text alone
asn:1234 The document with this archive serial number
notes:callback Documents with the word in a note
path:binders Documents with this storage path, by its name
custom_fields:gold Documents with the word in the value of a custom field
original_filename:scan-0412.pdf The document of this file, as Paperless received it, by its whole name
like:[P412] Documents similar to the one with the marker [P412] in its file name

like: finds the other letters of a case from one of them: Paperless looks for the documents most similar to this one, as More like this does in its web interface. The term is like: with the ID of the document alone, in the marker of its file or without it, such as like:[P412], like:P412 or like:412, in capitals or not; with a further word or anything else after the colon, such as like:abc or like:[P012], it is a search like any other. It works wherever the search does, in the global search, the smart picker and the API, with the date filter and every page of the results, and leaves the document itself out. It answers only when you can open a file of that document, as a result needs one, and with one of your tags when Paperless Sync lets you see only the documents with some tags: documents similar to one tell something about it, so for a document that you may not see it finds nothing. An ID that Paperless doesn't know, or of a document that its account may not view, finds nothing as well. Before Paperless-ngx 2.20.13, Paperless doesn't check whether its account may view that document, so one that it may not view still finds similar documents, of those that its account may view. Paperless 3 sends no excerpt for a similar document, so its result names its file instead.

Find similar documents in Paperless, in the menu of a file in Files whose name carries the marker of a document, such as [P412], finds the same without typing: it shows the documents similar to that one in a dialog, with the preview, the title and the line below it of each, as the search shows them, ten at a time with Show more for the next ones, and a click opens the file. It searches through the search of Nextcloud with the term like:412, so it finds what that term finds, with the same rules, also while Search connected services is off. Files offers it once the app is connected to Paperless and has an archive account, for a single file, not for a folder or in the trash bin.

Paperless-ngx 2 also knows owner:jamie, the account that owns a document; Paperless-ngx 3 has no such field. The contract tests check every row of this table against both.

A field or a quote that is still being typed, such as tag: alone, can find nothing; the results come once the search is complete. Paperless 3 refuses a query that it can't parse yet, such as created:[2026 to while the range is still being typed; the search then finds the documents of its words in the simple search of Paperless until the query is complete. Neither that nor a page past the last result counts as a problem of the search. Each result is still a document whose file the searching user can open.

Use it from scripts and AI assistants

The search is also an API: Nextcloud's OCS search API answers with the same results that its search shows, for the user who asks and the files that user can open. A script, an automation or an AI assistant that can send HTTP requests uses it with an app password of a user:

curl -u jamie -H 'OCS-APIRequest: true' \
  'https://cloud.example.com/ocs/v2.php/search/providers/paperless_unified_search_documents/search?term=invoice&format=json'

curl asks for the app password, which keeps it out of the history of the shell; a script hands it over in a file with --netrc-file. The answer, shortened:

{
  "ocs": {
    "meta": { "status": "ok", "statuscode": 200, "message": "OK" },
    "data": {
      "name": "Paperless documents",
      "isPaginated": false,
      "entries": [
        {
          "thumbnailUrl": "https://cloud.example.com/core/preview?x=64&y=64&fileId=1234&mimeFallback=1",
          "title": "Home insurance renewal",
          "subline": "Mar 2, 2026 · Harbor Mutual · Insurance · paid — … the premium is due with this invoice …",
          "resourceUrl": "https://cloud.example.com/f/1234",
          "icon": "",
          "rounded": false,
          "attributes": { "fileId": "1234", "path": "/Archive/2026/Home insurance renewal [P412].pdf" }
        }
      ],
      "cursor": null
    }
  }
}

Each entry names the document, its date in the language of the user, its correspondent, its type and up to two of its tags with a line of its text that matches, the picture of its file in thumbnailUrl as an absolute URL, which is its preview when Nextcloud draws previews of its type and otherwise the icon of that type, the link that opens its file and the file's ID and path for that user. icon stays empty: Nextcloud's smart picker would show it in place of the picture, as the name of a CSS class. limit sets how many results a page holds, 5 by default and up to 50. To fill a page, the app goes through up to 4 pages of 25 documents that Paperless finds, or up to 20 while it has found no result yet, for at most 3 seconds. A page can still hold fewer results, even none, when the user can open the files of only a few of the documents that Paperless finds, so keep asking with cursor set to the cursor of the answer while isPaginated is true. Send the cursor back as you got it: it counts the documents of Paperless that the pages before went through. since and until narrow the results to the documents dated within a span, as the date filter of the search does, each a moment such as 2026-08-01T00:00:00Z whose day in the timezone of the user counts, so &since=2026-08-01T00:00:00Z&until=2026-08-31T23:59:59Z finds the documents of August 2026 for a user in UTC. The switch Search connected services belongs to the search in the browser; the API asks Paperless without it.

Give an assistant the app password of a user who sees only what it may read, and revoke the app password in the personal security settings once the assistant no longer needs it.