the-paperless-project / paperless

Scan, index, and archive all of your paper documents
GNU General Public License v3.0
7.84k stars 501 forks source link

Disable DjangoQL 0.14 advanced search syntax by default. #716

Open grembo opened 3 years ago

grembo commented 3 years ago

DjangoQL 0.14 enables advanced search/completion by default. This patch disables it again, so paperless behaves the same regardless of the version used.

See

When using DjangoQL 0.13, this is simply a NOOP.

MasterofJOKers commented 3 years ago

It seems like we're still on 0.12.3. Is it a NOOP there, too?

Would it make sense to expose this as a setting, so the user can choose whether they want djangoql by default or not?

grembo commented 3 years ago

It seems like we're still on 0.12.3. Is it a NOOP there, too?

Yes, it only sets a class variable, which in case of older versions is simply ignored by DjangoQL, as it's unknown to those.

Would it make sense to expose this as a setting, so the user can choose whether they want djangoql by default or not?

Maybe once you upgraded your preferred version to 0.14 (I'm maintaining the FreeBSD port, which uses latest versions by default, that's why I stumbled over this problem)? AFAIK the tunable isn't available in earlier versions and would have to be emulated by setting it explicitly for those, probably not worth the effort.