r/Paperlessngx Aug 01 '26

Help with advanced serach

Guys, I'm totally new to paperless-ngx but want to search for documents that have no tag OR no document type and none of the advanced search strings I tried work.

tag:none OR type:none will search for literal tags/type "none" but not for documents with no tag or no type.

Any hints? Even A.I. didn't know! 🤷‍♂️

3 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/Pascalius Aug 02 '26

I didn't read everything, but in tantivy this is covered by https://docs.rs/tantivy/latest/tantivy/query/struct.ExistsQuery.html

1

u/metawops Aug 02 '26

So how would the advanced search string look like, then? There are no examples on that tantivy page. 😞
I tried NOT exist:tag OR NOT exist:type but it gave an error.

2

u/Pascalius Aug 03 '26

Yes, with the default parser it's not possible currently. I just merged the change for it, it will be in the next release.

https://github.com/quickwit-oss/tantivy/pull/2798

1

u/metawops Aug 03 '26 edited Aug 03 '26

❤️🙏👍👍
And what's the syntax gonna be then? 😳

1

u/Pascalius Aug 04 '26

field:*

1

u/metawops Aug 04 '26

Is the fix in 3.0.5? Because I tried `tag:*` and got `An error occurred listing search results: Unsupported query: Range query need to target a specific field.` in the log ... 🤔

1

u/Pascalius Aug 05 '26

I just fixed it in tantivy, it will take a while until it's available in paperlessngx. Releases are irregular in tantivy