-
Notifications
You must be signed in to change notification settings - Fork 469
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
JAMES-3516 Implement SearchThreadIdGuessingAlgorithm #529
JAMES-3516 Implement SearchThreadIdGuessingAlgorithm #529
Conversation
.../store/src/main/java/org/apache/james/mailbox/store/mail/NaiveThreadIdGuessingAlgorithm.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This searching implementation is actually ok to be used within server/apps/memory-app ;-)
...src/test/java/org/apache/james/mailbox/store/search/SearchThreadIdGuessingAlgorithmTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read it
...src/test/java/org/apache/james/mailbox/store/search/SearchThreadIdGuessingAlgorithmTest.java
Outdated
Show resolved
Hide resolved
...tore/src/test/java/org/apache/james/mailbox/store/AbstractThreadIdGuessingAlgorithmTest.java
Outdated
Show resolved
Hide resolved
Should we bind SearchThreadIdGuessingAlgorithm.class to MemoryMailboxModule? |
IMO yes :-p |
...ox/store/src/test/java/org/apache/james/mailbox/store/ThreadIdGuessingAlgorithmContract.java
Outdated
Show resolved
Hide resolved
Ok, so it looks like guice handles the loop easily. |
WE GOT A BUGGG!!!! (Not with your code though...)
|
3610626
to
b4661e5
Compare
Squash fixups + cherry pick ff5308b (for now) + fix email/import fail test commit. |
Can you squash the fixup and remove your cherry-pick, as that commit has been merged already? |
...ox/store/src/test/java/org/apache/james/mailbox/store/ThreadIdGuessingAlgorithmContract.java
Show resolved
Hide resolved
NaiveThreadIdGuessingAlgorithmImpl -> NaiveThreadIdGuessingAlgorithm
Remove Username, add MailboxSession to guessThreadId method params. Enable guessThreadIdReactive API.
Experiment guessing threadId by doing search
d5481b0
to
4d2ebd2
Compare
Purpose: Experiment guessing threadId by doing search. Good to experiment but bad for production.
I changed a piece of code in buildSearchQuery. We did compare one to one corresponding field. We should compare many fields.