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

Lucene IMAP Full Text Search #5106

Closed
DavidePrincipi opened this issue Sep 14, 2016 · 3 comments
Closed

Lucene IMAP Full Text Search #5106

DavidePrincipi opened this issue Sep 14, 2016 · 3 comments
Labels
verified All test cases were verified successfully
Milestone

Comments

@DavidePrincipi
Copy link
Member

DavidePrincipi commented Sep 14, 2016

The upstream dovecot package provides the Lucene-based FTS (Full Text Search) plugin. We can enable it by default on ns7.

@DavidePrincipi DavidePrincipi added this to the v7 milestone Sep 14, 2016
gsanchietti added a commit to NethServer/nethserver-mail-server that referenced this issue Sep 14, 2016
Enable Lucene Full Text Search by default NethServer/dev#5106
@DavidePrincipi
Copy link
Member Author

DavidePrincipi commented Sep 15, 2016

TEST CASE

After upgrading to the modified version the new feature must be enabled by default. For a performance comparison I suggest testing the modified version on a big mailbox.

  • check the new config DB prop dovecot/FtsLuceneStatus is enabled
  • run an IMAP session, where two "search text" commands are executed. The first run takes a lot of time to build the index. The second run is very fast.
# nc -C localhost 143
* OK [...] Dovecot ready.
A LOGIN username password
A OK [CAPABILITY...] Logged in
C SELECT INBOX
* FLAGS ([...])
* OK [PERMANENTFLAGS ([...] \*)] Flags permitted.
* 3031 EXISTS
* 0 RECENT
* OK [...]
C OK [READ-WRITE] Select completed (0.086 secs).
B SEARCH TEXT nethserver
* OK Indexed 32% of the mailbox, ETA 0:20
* OK Indexed 69% of the mailbox, ETA 0:08
* OK Mailbox indexing finished
* SEARCH 20 26 27 28 29 36 42 43 [...] 3014
B OK Search completed (27.571 secs).
B SEARCH TEXT nethserver
* SEARCH 20 26 27 28 29 36 42 43 [...] 3014
D OK Search completed (0.000 secs).
  • check the index has been persisted to /var/lib/nethserver/vmail/<USERNAME>/Maildir/lucene-indexes

In nethserver-testing:
nethserver-mail-server-1.10.1-1.4.g92a12d0.ns7.noarch.rpm

Follow the discussion:
http://community.nethserver.org/t/dovecot-imap-full-text-search-with-lucene/4389

@DavidePrincipi DavidePrincipi added the testing Packages are available from testing repositories label Sep 15, 2016
@gsanchietti gsanchietti self-assigned this Sep 20, 2016
@gsanchietti
Copy link
Member

Indexes are generated as soon the search is fired, but only if the mailbox contains at least one message.

@gsanchietti gsanchietti added the verified All test cases were verified successfully label Sep 20, 2016
@gsanchietti gsanchietti removed their assignment Sep 20, 2016
@DavidePrincipi DavidePrincipi removed the testing Packages are available from testing repositories label Sep 21, 2016
@DavidePrincipi
Copy link
Member Author

In nethserver-updates:
nethserver-mail-server-1.10.2-1.ns7.noarch.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verified All test cases were verified successfully
Projects
None yet
Development

No branches or pull requests

2 participants