Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dovecot/FTS] Replace Solr with Xapian #4456

Closed
wants to merge 42 commits into from
Closed

Conversation

DerLinkman
Copy link
Member

@DerLinkman DerLinkman commented Feb 7, 2022

DO NOT MERGE UNTIL ALL CHECKS ARE MADE

This PR replaces Solr FTS with Xapian FTS

It is usable but not nearly finished!

What is done? What needs to be added?:


Xapian itself

  • Dovecot Update + Xapian compilation
  • Xapian variable replacement from mailcow.conf and docker-compose.yml
  • Xapian Replacement in generate-config.sh & update.sh
  • Addition of new extra config file to control the Xapian Plugin

WebUI Stuff

  • Reorganisation of the general UI (Indevelopment by @FreddleSpl0it)
    image
    NOT Final | Revision 2
  • Xapian Replacement in WebUI
  • Add new Reindex Dovecot Indexes Button in WebUI (controlled with DockerAPI) (Xapian section) NOT FINAL

Behind the scenes stuff (API, Translations etc.)

  • Remove/Replace Solr Strings with Xapian (Translations)
  • Solr API removal (Xapian replacement?)
  • Cleanups (Dovecot Image)
  • Final Tests

ntimo and others added 24 commits January 21, 2022 21:29
This Push adds the bullseye rebase + the compilation of the XAPIAN Core + Plugin to run with Dovecot 2.3.17
This added a include try pointing on the file instead.
Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)
* [Web] add github version tag

* [Web] add github version tag

* [Web] add github version tag

* [Web] add github version tag

* [Web] add github version tag

* [Web] add github version tag error handling

* [Web] add github version tag error handling

* Passwordless SOGo auth: support for calendar invitations and calendar/contacts subscriptions

Inviting someone to a calendar event triggers a request to /SOGo/so/otheruser@example.com/freebusy.ifb/ajaxRead. Subscribing to someone's calendar/contacts triggers a request to /SOGo/so/otheruser@example.com/foldersSearch. The email address in the URL is different from the logged-in user, which needs to be handled appropriately by sogo-auth.php.

* [Web] add github version tag - adjust css

* [Compose] Update SOGo Autoreply Schedule to 5m

Based on the advice of inverse (SOGo developer). Thanks to https://github.com/jmber

Closes: #4436

* [Web] add github version tag - move twig globals

* [Web] add github version tag - missing </div>

* Passwordless SOGo auth: improvements for when accessing other users

* [WebAuthn] fido2 passwordless auth - fix (#4440)

* [WebAuthn] fido2 revert

* [WebAuthn] set UV flags to 'discouraged'

* [WebAuthn] revert - set UV flags to 'discouraged'

* Update clamav to 0.104.2

* Update clamav to 0.104.2

* Update dovecot to 2.3.18

Update gosu to 1.14
Use debian bullseye as base

* [Web] Updated lang.es.json [CI SKIP] (#4453)

Co-authored-by: Fijxu <fijxu@zzls.xyz>
Co-authored-by: milkmaker <milkmaker@mailcow.de>

Co-authored-by: Fijxu <fijxu@zzls.xyz>

Co-authored-by: FreddleSpl0it <patschul@posteo.de>
Co-authored-by: FreddleSpl0it <75116288+FreddleSpl0it@users.noreply.github.com>
Co-authored-by: Michael Kuron <mkuron@users.noreply.github.com>
Co-authored-by: Peter <magic@kthx.at>
Co-authored-by: milkmaker <milkmaker@mailcow.de>
Co-authored-by: Fijxu <fijxu@zzls.xyz>
[XAPIAN] Added Solr Replacement [BETA]
@MAGICCC
Copy link
Member

MAGICCC commented Feb 7, 2022

Nice! We could convert the PR into a draft so we won't merge it accidentally :D

Also we need to redo the translation parts (renaming Solr to Xapian)
What about old installations and their configs? Do you plan to try to remove the corresponding lines from the mailcow.conf?
E.g.
https://github.com/mailcow/mailcow-dockerized/blob/master/generate_config.sh#L250-L257

@DerLinkman
Copy link
Member Author

Why do we need to remove the Xapian translation? It is replacing the solr. I didn't tested it until now. New mailcow Installations works flawlessly

@DerLinkman DerLinkman marked this pull request as draft February 7, 2022 17:10
Copy link
Member

@mkuron mkuron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please provide some rough numbers how much memory and disk space Xapian and Solr take up for an "average" user‘s mailbox, e.g. 10000 messages? Xapian should be better than Solr, but we should know by how much.

Base automatically changed from staging to master May 5, 2022 15:30
@andryyy
Copy link
Contributor

andryyy commented Jul 19, 2022

As long as this is just to play around, it’s fine. Don’t ever merge this to master, please, before several things are fixed and there is an official release.

@DerLinkman DerLinkman added this to the 2023 milestone Nov 21, 2022
@VermiumSifell
Copy link
Collaborator

I think the issue title should be named Replace Solr with Xapian, as I currently understands the title as going from Xapian to Solr

@DerLinkman DerLinkman changed the base branch from master to staging January 18, 2023 11:14
@DerLinkman
Copy link
Member Author

I think the issue title should be named Replace Solr with Xapian, as I currently understands the title as going from Xapian to Solr

Absolutely right. Don't know if i was drunk or something why that happend :)

Thanks anyways

@VermiumSifell VermiumSifell changed the title [Dovecot/FTS] Replace Xapian with Solr [Dovecot/FTS] Replace Solr with Xapian Jan 20, 2023
@DerLinkman DerLinkman modified the milestones: 2023, 2024 Jan 10, 2024
@DerLinkman DerLinkman closed this Jan 30, 2024
@DerLinkman DerLinkman deleted the feature/fts-xapian branch January 30, 2024 10:37
@jpbaril
Copy link

jpbaril commented Jan 30, 2024

@DerLinkman Feature abandoned?

@DerLinkman
Copy link
Member Author

No just redone with the current mailcow development branches (see: https://github.com/mailcow/mailcow-dockerized/tree/feat/fts-flatcurve)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants